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:
Rabi Mishra 2020-03-22 08:33:31 +05:30 committed by mathieu bultel
parent 08f469d7e8
commit 2a644ab397
1 changed files with 1 additions and 1 deletions

View File

@ -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,