summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorBen Doherty <ben@thinkoomph.com>2016-05-26 21:33:27 -0400
committerBen Doherty <ben@thinkoomph.com>2016-05-26 21:33:27 -0400
commite9b85326a653c9c9e325a8fe1b1c7714c05a29ad (patch)
treeeb58f0069c01637cf557d2adb8ef9a98c81e462c /files
parent431d8c9a8f14e783e8d99c9888aa71ae9e326125 (diff)
downloadansible-modules-extras-e9b85326a653c9c9e325a8fe1b1c7714c05a29ad.tar.gz
Fix write mode for ZipFiles ('wb' is invalid!)
Diffstat (limited to 'files')
-rw-r--r--files/archive.py2
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):])