Update config for pretty printing

This commit is contained in:
Phyks 2014-11-05 00:02:43 +01:00
parent 08f6b8846a
commit c1055ecb8c

View File

@ -87,7 +87,9 @@ class Config():
def save(self): def save(self):
try: try:
with open(self.config_path + "bmc.json", 'w') as fh: 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: except IOError:
tools.warning("Could not write config file.") tools.warning("Could not write config file.")
sys.exit(1) sys.exit(1)