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:
parent
e19035079e
commit
ce6905d54a
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user