From 2666e0603e5fc27fec0f210be7d6625e6d954327 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 26 Nov 2023 14:18:13 -0500 Subject: [PATCH] Update dnsmasq script to use new config file --- node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py b/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py index 4365ed7e..d4bc45ae 100755 --- a/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py +++ b/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py @@ -70,12 +70,12 @@ def get_client_id(): def connect_zookeeper(): # We expect the environ to contain the config file try: - pvcnoded_config_file = os.environ["PVCD_CONFIG_FILE"] + pvc_config_file = os.environ["PVC_CONFIG_FILE"] except Exception: # Default place - pvcnoded_config_file = "/etc/pvc/pvcnoded.yaml" + pvc_config_file = "/etc/pvc/pvc.conf" - with open(pvcnoded_config_file, "r") as cfgfile: + with open(pvc_config_file, "r") as cfgfile: try: o_config = yaml.load(cfgfile, yaml.SafeLoader) except Exception as e: @@ -87,7 +87,7 @@ def connect_zookeeper(): try: zk_conn = kazoo.client.KazooClient( - hosts=o_config["pvc"]["cluster"]["coordinators"] + hosts=o_config["cluster"]["coordinator_nodes"] ) zk_conn.start() except Exception as e: