Add newline if the output formatter is json
Change-Id: I4955a148713a9338b6c423e712576adcfd2305f1 Closes-Bug: #1657683
This commit is contained in:
parent
679eed5609
commit
49ce4c18af
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue