Bux: task_id parameter from API can not pass to yardstick core 61/28161/2
authorchenjiankun <chenjiankun1@huawei.com>
Tue, 7 Feb 2017 09:13:17 +0000 (09:13 +0000)
committerchenjiankun <chenjiankun1@huawei.com>
Fri, 10 Feb 2017 14:22:13 +0000 (14:22 +0000)
JIRA: JIRA: YARDSTICK-531

Now in API entry the task_id parameter will not pass to yardstick core.
I fix it by pass task_id to yardstick.benchmark.core.task.start() method.

Change-Id: Icf58f2f68549ca3314d6ec0f118b360537126d41
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
yardstick/cmd/commands/task.py

index 20ab086..57c2b15 100644 (file)
@@ -48,7 +48,7 @@ class TaskCommands(object):
         self._init_result_file()
 
         try:
-            Task().start(param)
+            Task().start(param, **kwargs)
         except Exception as e:
             self._write_error_data(e)