diff options
author | Ben Doherty <ben@thinkoomph.com> | 2016-05-26 21:33:27 -0400 |
---|---|---|
committer | Ben Doherty <ben@thinkoomph.com> | 2016-05-26 21:33:27 -0400 |
commit | e9b85326a653c9c9e325a8fe1b1c7714c05a29ad (patch) | |
tree | eb58f0069c01637cf557d2adb8ef9a98c81e462c /files | |
parent | 431d8c9a8f14e783e8d99c9888aa71ae9e326125 (diff) | |
download | ansible-modules-extras-e9b85326a653c9c9e325a8fe1b1c7714c05a29ad.tar.gz |
Fix write mode for ZipFiles ('wb' is invalid!)
Diffstat (limited to 'files')
-rw-r--r-- | files/archive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/archive.py b/files/archive.py index f6791ff5..76dcb9cf 100644 --- a/files/archive.py +++ b/files/archive.py @@ -175,7 +175,7 @@ def main(): successes.append(path) elif compression == 'zip': - archive = zipfile.ZipFile(creates, 'wb') + archive = zipfile.ZipFile(creates, 'w') for path in archive_paths: archive.write(path, path[len(arcroot):]) |