Commit 7fbaf3aa by Toshio Kuratomi

Fixes #12488

parent a0fd450e
...@@ -229,9 +229,9 @@ def write_tree_file(tree, hostname, buf): ...@@ -229,9 +229,9 @@ def write_tree_file(tree, hostname, buf):
# TODO: might be nice to append playbook runs per host in a similar way # TODO: might be nice to append playbook runs per host in a similar way
# in which case, we'd want append mode. # in which case, we'd want append mode.
path = os.path.join(tree, hostname) path = os.path.join(tree, hostname)
fd = open(path, "w+") buf = to_bytes(buf)
fd.write(buf) with open(path, 'wb+') as fd:
fd.close() fd.write(buf)
def is_failed(result): def is_failed(result):
''' is a given JSON result a failed result? ''' ''' is a given JSON result a failed result? '''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment