From f1632feb615ebe97e317645a2e640848304aa53a Mon Sep 17 00:00:00 2001 From: Ian Main Date: Thu, 3 Aug 2017 16:40:50 -0400 Subject: [PATCH] Make our json output prettier. Add an indent=2 so these files are human readable. Change-Id: Ie75c3a85e9c9dc890c4e138e9453bf055cd265a7 --- docker/docker-puppet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker-puppet.py b/docker/docker-puppet.py index 55ab9b9f9a..195f57cfce 100755 --- a/docker/docker-puppet.py +++ b/docker/docker-puppet.py @@ -382,7 +382,7 @@ for infile in infiles: outfile = os.path.join(os.path.dirname(infile), "hashed-" + os.path.basename(infile)) with open(outfile, 'w') as out_f: os.chmod(out_f.name, 0600) - json.dump(infile_data, out_f) + json.dump(infile_data, out_f, indent=2) if not success: sys.exit(1)