use safe load instead

fixes #21724
This commit is contained in:
Brian Coca
2017-02-21 16:46:59 -05:00
committed by Brian Coca
parent 8ec28a2ba4
commit 5258e6d52a
4 changed files with 5 additions and 5 deletions

View File

@@ -170,7 +170,7 @@ def main():
for cfg_file in config_files:
if os.path.isfile(cfg_file):
stream = open(cfg_file, 'r')
config = yaml.load(stream)
config = yaml.safe_load(stream)
break
if not config:
sys.stderr.write("No config file found at {}\n".format(config_files))