Sort keys in config

This commit is contained in:
Phyks 2014-11-05 14:44:05 +01:00
parent c1055ecb8c
commit 2e6d9c0f79
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ class Config():
try:
with open(self.config_path + "bmc.json", 'w') as fh:
fh.write(json.dumps(self.config,
sort_keys=True
indent=4,
separators=(',', ': ')))
except IOError: