1 parent 0d61289 commit a25a4a9Copy full SHA for a25a4a9
1 file changed
cli4/cli4.py
@@ -282,9 +282,9 @@ def cli4(args):
282
results = results[0]
283
284
if output == 'json':
285
- # sys.stdout.write(json.dumps(results, indent=4, sort_keys=True) + '\n')
286
- json.dumps(results, sys.stdout, indent=4, sort_keys=True)
287
- sys.stdout.write('\n')
+ sys.stdout.write(json.dumps(results, indent=4, sort_keys=True) + '\n')
+ # json.dumps(results, sys.stdout, indent=4, sort_keys=True)
+ # sys.stdout.write('\n')
288
if output == 'yaml':
289
sys.stdout.write(yaml.safe_dump(results))
290
0 commit comments