diff options
author | 2017-07-22 15:15:13 -0700 | |
---|---|---|
committer | 2017-08-01 15:02:08 +0000 | |
commit | 683fb00d41ed6a0a353cb1738b29216c05cd976e (patch) | |
tree | 8deed29bc30c0627ef6461e4899e7a72254bbc90 /yardstick/benchmark/scenarios/availability/operation | |
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/benchmark/scenarios/availability/operation')
-rw-r--r-- | yardstick/benchmark/scenarios/availability/operation/baseoperation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/benchmark/scenarios/availability/operation/baseoperation.py b/yardstick/benchmark/scenarios/availability/operation/baseoperation.py index 88ca9e2bb..4c2ce82d9 100644 --- a/yardstick/benchmark/scenarios/availability/operation/baseoperation.py +++ b/yardstick/benchmark/scenarios/availability/operation/baseoperation.py @@ -54,7 +54,7 @@ class BaseOperation(object): def __init__(self, config, context): if not BaseOperation.operation_cfgs: with open(operation_conf_path) as stream: - BaseOperation.operation_cfgs = yaml.load(stream) + BaseOperation.operation_cfgs = yaml.safe_load(stream) self.key = '' self._config = config self._context = context |