Pretty format json output.

This commit is contained in:
Florian Lindner 2018-09-30 11:11:31 +02:00
parent c4792aebb0
commit c57abcfda6
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ def _run_commands(args, consistency, local_path, location, remote_path, retentio
unexpanded_repository,
)
if args.json:
sys.stdout.write(json.dumps(json_results))
sys.stdout.write(json.dumps(json_results, indent=2))
def _run_commands_on_repository(