diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-07-22 15:15:13 -0700 |
---|---|---|
committer | Ross Brattain <ross.b.brattain@intel.com> | 2017-08-01 15:02:08 +0000 |
commit | 683fb00d41ed6a0a353cb1738b29216c05cd976e (patch) | |
tree | 8deed29bc30c0627ef6461e4899e7a72254bbc90 /yardstick/common | |
parent | 90e5786f6e5bd3235e3d1c307782b8cae9d7b958 (diff) |
replace yaml.load with yaml.safe_load
yaml.safe_load is safer, obviously.
anteater will check for this
template_format use specialized constructor based on yaml.SafeLoader
JIRA: YARDSTICK-760
Change-Id: Ia3b0b3aa0765385a0ee472a4d83f49d424b5a77f
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'yardstick/common')
-rw-r--r-- | yardstick/common/template_format.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yardstick/common/template_format.py b/yardstick/common/template_format.py index e1662ced1..98c0a0b3c 100644 --- a/yardstick/common/template_format.py +++ b/yardstick/common/template_format.py @@ -51,6 +51,7 @@ def parse(tmpl_str): tpl = jsonutils.loads(tmpl_str) else: try: + # we already use SafeLoader when constructing special Heat YAML loader class tpl = yaml.load(tmpl_str, Loader=yaml_loader) except yaml.YAMLError as yea: raise ValueError(yea) |