diff options
author | Zuul <zuul@review.opendev.org> | 2019-05-05 05:51:35 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-05-05 05:51:35 +0000 |
commit | 9fbea7980485575c9c42b04357275f7297630653 (patch) | |
tree | 34e8ca72814ecadb8e7361b8b44735a8bf08cbce | |
parent | 13801a59d3ce4256b4e83a7d907a48502d5e9bb8 (diff) | |
parent | b895afe8e18b0bd67cb5dadc90667bf4d64d5d4e (diff) | |
download | cliff-9fbea7980485575c9c42b04357275f7297630653.tar.gz |
Merge "Missing carriage return in some cases, using -f json"
-rw-r--r-- | cliff/formatters/json_format.py | 1 |
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') |