From 123499f75f18f602fd28f6e1821b2efbbb6b7d9b Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 31 Aug 2023 00:16:19 -0400 Subject: [PATCH] [Bookworm] Specify YAML loader explicitly --- node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py b/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py index 9d5c2148..4365ed7e 100755 --- a/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py +++ b/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py @@ -77,7 +77,7 @@ def connect_zookeeper(): with open(pvcnoded_config_file, "r") as cfgfile: try: - o_config = yaml.load(cfgfile) + o_config = yaml.load(cfgfile, yaml.SafeLoader) except Exception as e: print( "ERROR: Failed to parse configuration file: {}".format(e),