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)