Add newline if the output formatter is json

Change-Id: I4955a148713a9338b6c423e712576adcfd2305f1
Closes-Bug: #1657683
This commit is contained in:
shizhihui 2016-11-15 05:58:36 +08:00
parent 679eed5609
commit 49ce4c18af
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class JSONFormatter(base.ListFormatter, base.SingleFormatter):
)
indent = None if parsed_args.noindent else 2
json.dump(items, stdout, indent=indent)
stdout.write('\n')
def emit_one(self, column_names, data, stdout, parsed_args):
one = {