aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/core/task.py
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2017-06-30 02:02:01 +0000
committerchenjiankun <chenjiankun1@huawei.com>2017-06-30 09:05:41 +0000
commitb3c87ec90b519313530d6061aac03a09e8460e05 (patch)
tree238777ada3972a85f18d6a6b5d418d42da9bd8ea /yardstick/benchmark/core/task.py
parent9ba594fa3f34d551d34abd7582281ce081924c67 (diff)
unify pod keywork so api can easily used
JIRA: YARDSTICK-695 Change-Id: I826cb2ea07949b1eaae4df4cb77175ec8f5df89b Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'yardstick/benchmark/core/task.py')
-rw-r--r--yardstick/benchmark/core/task.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/benchmark/core/task.py b/yardstick/benchmark/core/task.py
index 9c6caf03f..4ae7f82b5 100644
--- a/yardstick/benchmark/core/task.py
+++ b/yardstick/benchmark/core/task.py
@@ -383,7 +383,7 @@ class TaskParser(object): # pragma: no cover
def _get_task_para(self, task, cur_pod):
task_args = task.get('task_args', None)
if task_args is not None:
- task_args = task_args.get(cur_pod, None)
+ task_args = task_args.get(cur_pod, task_args.get('default'))
task_args_fnames = task.get('task_args_fnames', None)
if task_args_fnames is not None:
task_args_fnames = task_args_fnames.get(cur_pod, None)