Update config for pretty printing
This commit is contained in:
parent
08f6b8846a
commit
c1055ecb8c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user