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