Don't write playbook stats in binary mode
Don't write the json string in binary mode. Change-Id: I5e68b1f1de64a4c199fa1764e1dbe4d8c36973f6 Task: 39122
This commit is contained in:
parent
2ff7cbcae1
commit
a0e13193c5
|
@ -151,7 +151,7 @@ class CallbackModule(CallbackBase):
|
||||||
self.env['playbook_name'],
|
self.env['playbook_name'],
|
||||||
self.current_time)
|
self.current_time)
|
||||||
|
|
||||||
with open(log_file, 'wb') as js:
|
with open(log_file, 'w') as js:
|
||||||
js.write(json.dumps(output,
|
js.write(json.dumps(output,
|
||||||
cls=AnsibleJSONEncoder,
|
cls=AnsibleJSONEncoder,
|
||||||
indent=4,
|
indent=4,
|
||||||
|
|
Loading…
Reference in New Issue