mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Merge pull request #4594 from ryanpetrello/fix4565
cli: print a newline after HTTP JSON errors Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
0bebc0febc
@ -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…
x
Reference in New Issue
Block a user