Rename "target_task" to "task"
Change-Id: Id9e2cb3d99f33276d105ad5106c8f57f3b929a1c
This commit is contained in:
parent
95e5ed89be
commit
5dd0f21d03
@ -24,14 +24,10 @@ class Execution(base.Resource):
|
|||||||
class ExecutionManager(base.ResourceManager):
|
class ExecutionManager(base.ResourceManager):
|
||||||
resource_class = Execution
|
resource_class = Execution
|
||||||
|
|
||||||
def create(self, workbook_name, target_task):
|
def create(self, workbook_name, task):
|
||||||
self._ensure_not_empty(workbook_name=workbook_name,
|
self._ensure_not_empty(workbook_name=workbook_name, task=task)
|
||||||
target_task=target_task)
|
|
||||||
|
|
||||||
data = {
|
data = {'workbook_name': workbook_name, 'task': task}
|
||||||
'workbook_name': workbook_name,
|
|
||||||
'target_task': target_task
|
|
||||||
}
|
|
||||||
|
|
||||||
return self._create('/workbooks/%s/executions' % workbook_name, data)
|
return self._create('/workbooks/%s/executions' % workbook_name, data)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user