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:
Rabi Mishra 2020-03-22 08:33:31 +05:30
parent 2ff7cbcae1
commit a0e13193c5
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,