Fixes #12488
This commit is contained in:
parent
a0fd450e64
commit
7fbaf3aa4a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
# in which case, we'd want append mode.
|
||||
path = os.path.join(tree, hostname)
|
||||
fd = open(path, "w+")
|
||||
fd.write(buf)
|
||||
fd.close()
|
||||
buf = to_bytes(buf)
|
||||
with open(path, 'wb+') as fd:
|
||||
fd.write(buf)
|
||||
|
||||
def is_failed(result):
|
||||
''' is a given JSON result a failed result? '''
|
||||
|
|
Loading…
Reference in a new issue