mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
cli: print a newline after HTTP JSON errors
see: https://github.com/ansible/awx/issues/4565
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