save config as pretty json
@@ -57,8 +57,8 @@ class Config(Base):
f.seek(0)
f.truncate()
- json.dump(res, f)
+ json.dump(res, f, indent=4, sort_keys=True)
- print('Created/Updated config file in %s with values: %s' % (conf_path, json.dumps(res, indent=2)))
+ print('Created/Updated config file in %s with values: \n%s' % (conf_path, json.dumps(res, indent=2)))
return res
