[Bookworm] Specify YAML loader explicitly

This commit is contained in:
Joshua Boniface 2023-08-31 00:16:19 -04:00
parent 83b8ce7b62
commit 123499f75f
1 changed files with 1 additions and 1 deletions

View File

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