From 3e670642781b33825eee01f17cf79906e1e20897 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 26 Oct 2023 14:39:46 +0200 Subject: Minor changes --- clusterman/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clusterman/config.py') diff --git a/clusterman/config.py b/clusterman/config.py index 2a9b95b..db63778 100644 --- a/clusterman/config.py +++ b/clusterman/config.py @@ -12,7 +12,8 @@ class Config: "cluster": { "ip4_from": "10.128.0.133", "ip4_to": "10.128.0.140", - "ip4_ignore": ["10.0.0.5", "10.0.0.1"] + "ip4_ignore": ["10.0.0.5", "10.0.0.1"], + "last_scan": None }, "timeout": 0.5 } @@ -31,7 +32,7 @@ class Config: def save(self): with open(self.CONF_FILE, "w") as f: - f.write(json.dumps(self.config)) + f.write(json.dumps(self.config,indent=4, sort_keys=True)) def __getitem__(self, key): return self.config[key] -- cgit v1.2.3