1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 13:55:31 +03:00

cli: print a newline after HTTP JSON errors

see: https://github.com/ansible/awx/issues/4565
This commit is contained in:
Ryan Petrello 2019-08-26 12:42:58 -04:00
parent e19035079e
commit ce6905d54a
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -52,6 +52,7 @@ def run(stdout=sys.stdout, stderr=sys.stderr, argv=[]):
print(traceback.format_exc(), sys.stderr)
if cli.get_config('format') == 'json':
json.dump(e.msg, sys.stdout)
print('')
elif cli.get_config('format') == 'yaml':
sys.stdout.write(to_str(
yaml.safe_dump(