Sort keys in config

This commit is contained in:
Phyks 2014-11-05 14:44:05 +01:00
parent c1055ecb8c
commit 2e6d9c0f79

View File

@ -88,6 +88,7 @@ class Config():
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,
sort_keys=True
indent=4, indent=4,
separators=(',', ': '))) separators=(',', ': ')))
except IOError: except IOError: