From 4f5bda9a70daba839a949518575bb6a24727e396 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Nov 2024 13:00:51 +0000 Subject: [PATCH] json extension --- daemon_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon_utils.py b/daemon_utils.py index 135fe8169..831bf663c 100644 --- a/daemon_utils.py +++ b/daemon_utils.py @@ -877,7 +877,7 @@ def log_epicyon_instances(base_dir: str, calling_domain: str, known_epicyon_instances.append(calling_domain) known_epicyon_instances.sort() epicyon_instances_filename = \ - data_dir(base_dir) + '/known_epicyon_instances.txt' + data_dir(base_dir) + '/known_epicyon_instances.json' print('DEBUG: log_epicyon_instances: ' + epicyon_instances_filename + ' ' + str(known_epicyon_instances)) save_json(known_epicyon_instances, epicyon_instances_filename) @@ -887,7 +887,7 @@ def load_known_epicyon_instances(base_dir: str) -> []: """Loads a list of known epicyon instances """ epicyon_instances_filename = \ - data_dir(base_dir) + '/known_epicyon_instances.txt' + data_dir(base_dir) + '/known_epicyon_instances.json' if not os.path.isfile(epicyon_instances_filename): return [] known_epicyon_instances = load_json(epicyon_instances_filename)