Merge "Fix YAMLLoadWarning"

This commit is contained in:
Zuul 2019-05-21 00:17:20 +00:00 committed by Gerrit Code Review
commit 55aa00b3c3

View File

@ -30,7 +30,7 @@ def config_loads(cfg_text, from_cfg=None):
'''Same as config_load but load from a string
'''
try:
cfg = AttrDict(yaml.load(cfg_text))
cfg = AttrDict(yaml.safe_load(cfg_text))
except TypeError:
# empty string
cfg = AttrDict()