Merge "Replaces yaml.load() with yaml.safe_load()"

This commit is contained in:
Zuul 2018-03-09 06:37:18 +00:00 committed by Gerrit Code Review
commit 4aeeedc55d

View File

@ -36,7 +36,7 @@ def _load_yaml(data):
loaded_data = {}
else:
try:
loaded_data = yaml.load(data)
loaded_data = yaml.safe_load(data)
except Exception as ex:
raise Exception(_('The specified input is not a valid '
'YAML format: %s') % six.text_type(ex))