diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-08-03 01:54:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-03 01:54:40 +0000 |
commit | 4f13caca517bd6ff31c0213ec7f9d8809dd4ef3c (patch) | |
tree | 77296c20129fd9f87dd61839934bd5735120b4d2 /yardstick/benchmark/scenarios/availability/attacker/baseattacker.py | |
parent | 7786deb79662368c80386e6eaee4e9bfe12fcd2f (diff) | |
parent | 683fb00d41ed6a0a353cb1738b29216c05cd976e (diff) |
Merge "replace yaml.load with yaml.safe_load"
Diffstat (limited to 'yardstick/benchmark/scenarios/availability/attacker/baseattacker.py')
-rw-r--r-- | yardstick/benchmark/scenarios/availability/attacker/baseattacker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/benchmark/scenarios/availability/attacker/baseattacker.py b/yardstick/benchmark/scenarios/availability/attacker/baseattacker.py index 7b3d8b0be..a20b26396 100644 --- a/yardstick/benchmark/scenarios/availability/attacker/baseattacker.py +++ b/yardstick/benchmark/scenarios/availability/attacker/baseattacker.py @@ -56,7 +56,7 @@ class BaseAttacker(object): def __init__(self, config, context): if not BaseAttacker.attacker_cfgs: with open(attacker_conf_path) as stream: - BaseAttacker.attacker_cfgs = yaml.load(stream) + BaseAttacker.attacker_cfgs = yaml.safe_load(stream) self._config = config self._context = context |