diff options
author | Adrian Likins <alikins@redhat.com> | 2016-10-03 11:38:24 -0400 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2016-10-03 13:06:50 -0700 |
commit | 9f673e0725d71f9a2ce7b4b7f2f2d3cd2f31aff8 (patch) | |
tree | 5638f1ed1b06a4437ec46142d30218350c589c23 | |
parent | 828dcd0f40056061961dc445d5df02e8acacad03 (diff) | |
download | ansible-9f673e0725d71f9a2ce7b4b7f2f2d3cd2f31aff8.tar.gz |
open anziballs payload 'wb' for py3
-rw-r--r-- | lib/ansible/executor/module_common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/executor/module_common.py b/lib/ansible/executor/module_common.py index 28245be6e3..41b57b5fcb 100644 --- a/lib/ansible/executor/module_common.py +++ b/lib/ansible/executor/module_common.py @@ -212,12 +212,12 @@ def debug(command, zipped_mod, json_params): directory = os.path.dirname(dest_filename) if not os.path.exists(directory): os.makedirs(directory) - f = open(dest_filename, 'w') + f = open(dest_filename, 'wb') f.write(z.read(filename)) f.close() # write the args file - f = open(args_path, 'w') + f = open(args_path, 'wb') f.write(json_params) f.close() |