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):
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)