From 5dd0f21d032b7b7535f4df55b9c710eac467ab36 Mon Sep 17 00:00:00 2001 From: Renat Akhmerov Date: Fri, 14 Feb 2014 18:23:25 +0700 Subject: [PATCH] Rename "target_task" to "task" Change-Id: Id9e2cb3d99f33276d105ad5106c8f57f3b929a1c --- mistralclient/api/executions.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/mistralclient/api/executions.py b/mistralclient/api/executions.py index 7499489a..24cf691c 100644 --- a/mistralclient/api/executions.py +++ b/mistralclient/api/executions.py @@ -24,14 +24,10 @@ class Execution(base.Resource): class ExecutionManager(base.ResourceManager): resource_class = Execution - def create(self, workbook_name, target_task): - self._ensure_not_empty(workbook_name=workbook_name, - target_task=target_task) + def create(self, workbook_name, task): + self._ensure_not_empty(workbook_name=workbook_name, task=task) - data = { - 'workbook_name': workbook_name, - 'target_task': target_task - } + data = {'workbook_name': workbook_name, 'task': task} return self._create('/workbooks/%s/executions' % workbook_name, data)