Skip to content
Snippets Groups Projects
Unverified Commit b42329e3 authored by Paul Wise's avatar Paul Wise
Browse files

Do not load Python code from YAML files

parent 018c0607
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ def load_conf(cf):
configfile = '/etc/nagios/dsa-check-backuppg.conf'
f = open(configfile)
config = yaml.load(f.read())
config = yaml.safe_load(f.read())
f.close()
return config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment