From 35f8ca1b46d0164048a7f843e14a464f655c0184 Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Thu, 22 Dec 2016 16:22:26 -0800 Subject: [PATCH] missing newline on json output --- cli4/cli4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli4/cli4.py b/cli4/cli4.py index 297f796..73aecbe 100644 --- a/cli4/cli4.py +++ b/cli4/cli4.py @@ -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))