mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
open anziballs payload 'wb' for py3
This commit is contained in:
committed by
Toshio Kuratomi
parent
828dcd0f40
commit
9f673e0725
@@ -212,12 +212,12 @@ def debug(command, zipped_mod, json_params):
|
|||||||
directory = os.path.dirname(dest_filename)
|
directory = os.path.dirname(dest_filename)
|
||||||
if not os.path.exists(directory):
|
if not os.path.exists(directory):
|
||||||
os.makedirs(directory)
|
os.makedirs(directory)
|
||||||
f = open(dest_filename, 'w')
|
f = open(dest_filename, 'wb')
|
||||||
f.write(z.read(filename))
|
f.write(z.read(filename))
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
# write the args file
|
# write the args file
|
||||||
f = open(args_path, 'w')
|
f = open(args_path, 'wb')
|
||||||
f.write(json_params)
|
f.write(json_params)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user