From 2e6d9c0f795c67ca4fabb0068f35d85ea5793191 Mon Sep 17 00:00:00 2001 From: Phyks Date: Wed, 5 Nov 2014 14:44:05 +0100 Subject: [PATCH] Sort keys in config --- libbmc/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libbmc/config.py b/libbmc/config.py index 191307b..0920213 100644 --- a/libbmc/config.py +++ b/libbmc/config.py @@ -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: