From c1055ecb8c7a7653781ff2300c23579541c8d739 Mon Sep 17 00:00:00 2001 From: Phyks Date: Wed, 5 Nov 2014 00:02:43 +0100 Subject: [PATCH] Update config for pretty printing --- libbmc/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libbmc/config.py b/libbmc/config.py index 4ac502c..191307b 100644 --- a/libbmc/config.py +++ b/libbmc/config.py @@ -87,7 +87,9 @@ class Config(): def save(self): try: with open(self.config_path + "bmc.json", 'w') as fh: - fh.write(json.dumps(self.config)) + fh.write(json.dumps(self.config, + indent=4, + separators=(',', ': '))) except IOError: tools.warning("Could not write config file.") sys.exit(1)