mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add a newline in output here, possibly considering printing top level keys flat
This commit is contained in:
parent
1420c49277
commit
b33ef0de60
1 changed files with 3 additions and 3 deletions
|
@ -166,10 +166,10 @@ class Cli(object):
|
||||||
print buf
|
print buf
|
||||||
else:
|
else:
|
||||||
if not failed:
|
if not failed:
|
||||||
buf += "%s >>" % hostname
|
buf += "%s >>\n" % hostname
|
||||||
else:
|
else:
|
||||||
buf += "%s | FAILED >>" % hostname
|
buf += "%s | FAILED >>\n" % hostname
|
||||||
buf += json.dumps(result, indent=4, sort_keys=True)
|
buf += json.dumps(result, sort_keys=True)
|
||||||
print buf
|
print buf
|
||||||
if options.tree:
|
if options.tree:
|
||||||
path = os.path.join(options.tree, hostname)
|
path = os.path.join(options.tree, hostname)
|
||||||
|
|
Loading…
Add table
Reference in a new issue