mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix write mode for ZipFiles ('wb' is invalid!)
This commit is contained in:
@@ -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):])
|
||||
|
||||
Reference in New Issue
Block a user