Skip to content

Commit

Permalink
missing newline on json output
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Dec 23, 2016
1 parent f1f99bd commit 35f8ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli4/cli4.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def cli4(args):
results = results[0]

if output == 'json':
sys.stdout.write(json.dumps(results, indent=4, sort_keys=True))
sys.stdout.write(json.dumps(results, indent=4, sort_keys=True) + '\n')
if output == 'yaml':
sys.stdout.write(yaml.safe_dump(results))

0 comments on commit 35f8ca1

Please sign in to comment.