summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-05-05 05:51:35 +0000
committerGerrit Code Review <review@openstack.org>2019-05-05 05:51:35 +0000
commit9fbea7980485575c9c42b04357275f7297630653 (patch)
tree34e8ca72814ecadb8e7361b8b44735a8bf08cbce
parent13801a59d3ce4256b4e83a7d907a48502d5e9bb8 (diff)
parentb895afe8e18b0bd67cb5dadc90667bf4d64d5d4e (diff)
downloadcliff-9fbea7980485575c9c42b04357275f7297630653.tar.gz
Merge "Missing carriage return in some cases, using -f json"
-rw-r--r--cliff/formatters/json_format.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cliff/formatters/json_format.py b/cliff/formatters/json_format.py
index 4483e91..0480432 100644
--- a/cliff/formatters/json_format.py
+++ b/cliff/formatters/json_format.py
@@ -52,3 +52,4 @@ class JSONFormatter(base.ListFormatter, base.SingleFormatter):
}
indent = None if parsed_args.noindent else 2
json.dump(one, stdout, indent=indent)
+ stdout.write('\n')