aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/scenarios/availability/attacker/baseattacker.py
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-08-03 01:54:40 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-03 01:54:40 +0000
commit4f13caca517bd6ff31c0213ec7f9d8809dd4ef3c (patch)
tree77296c20129fd9f87dd61839934bd5735120b4d2 /yardstick/benchmark/scenarios/availability/attacker/baseattacker.py
parent7786deb79662368c80386e6eaee4e9bfe12fcd2f (diff)
parent683fb00d41ed6a0a353cb1738b29216c05cd976e (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.py2
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