aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/core/task.py
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2018-03-01 21:17:05 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-01 21:17:05 +0000
commit3536e57cbbe7e84461d50a87fb87b4e99b4cd20a (patch)
treef54b56b274c2f5bb65fb5af3d531f48a755b10cb /yardstick/benchmark/core/task.py
parent6f7dd8ff0e6358ef958426a6baeae5deee1a57d8 (diff)
parentf8c32c5df789ab9dd698b247740cd72049e1bf65 (diff)
Merge "Add ability to reuse existing OpenStack set-up"
Diffstat (limited to 'yardstick/benchmark/core/task.py')
-rw-r--r--yardstick/benchmark/core/task.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yardstick/benchmark/core/task.py b/yardstick/benchmark/core/task.py
index 4993d2a7e..a4514f5f1 100644
--- a/yardstick/benchmark/core/task.py
+++ b/yardstick/benchmark/core/task.py
@@ -343,7 +343,7 @@ class Task(object): # pragma: no cover
try:
config_context_target(item)
except KeyError:
- pass
+ LOG.debug("Got a KeyError in config_context_target(%s)", item)
else:
break
@@ -524,6 +524,8 @@ class TaskParser(object): # pragma: no cover
context_type = cfg_attrs.get("type", "Heat")
context = Context.get(context_type)
context.init(cfg_attrs)
+ # Update the name in case the context has used the name_suffix
+ cfg_attrs['name'] = context.name
contexts.append(context)
run_in_parallel = cfg.get("run_in_parallel", False)