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),