mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 09:57:33 -02: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:
@@ -52,6 +52,7 @@ def run(stdout=sys.stdout, stderr=sys.stderr, argv=[]):
|
|||||||
print(traceback.format_exc(), sys.stderr)
|
print(traceback.format_exc(), sys.stderr)
|
||||||
if cli.get_config('format') == 'json':
|
if cli.get_config('format') == 'json':
|
||||||
json.dump(e.msg, sys.stdout)
|
json.dump(e.msg, sys.stdout)
|
||||||
|
print('')
|
||||||
elif cli.get_config('format') == 'yaml':
|
elif cli.get_config('format') == 'yaml':
|
||||||
sys.stdout.write(to_str(
|
sys.stdout.write(to_str(
|
||||||
yaml.safe_dump(
|
yaml.safe_dump(
|
||||||
|
|||||||
Reference in New Issue
Block a user