[Bookworm] Specify YAML loader explicitly
This commit is contained in:
parent
83b8ce7b62
commit
123499f75f
|
@ -77,7 +77,7 @@ def connect_zookeeper():
|
||||||
|
|
||||||
with open(pvcnoded_config_file, "r") as cfgfile:
|
with open(pvcnoded_config_file, "r") as cfgfile:
|
||||||
try:
|
try:
|
||||||
o_config = yaml.load(cfgfile)
|
o_config = yaml.load(cfgfile, yaml.SafeLoader)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(
|
print(
|
||||||
"ERROR: Failed to parse configuration file: {}".format(e),
|
"ERROR: Failed to parse configuration file: {}".format(e),
|
||||||
|
|
Loading…
Reference in New Issue