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

@ -146,7 +146,7 @@ class CloudStackFacts(object):
def _get_user_data_json(self):
try:
# this data come form users, we try what we can to parse it...
return yaml.load(self._fetch(CS_USERDATA_BASE_URL))
return yaml.safe_load(self._fetch(CS_USERDATA_BASE_URL))
except:
return None