Rename execution_id to workflow_execution_id
The field execution_id is renamed in the task object to workflow_execution_id. References in the mistralclient are changed accordingly. Change-Id: Id4deeba546b1fadd4c18585ca177d74bdf08f6dd Closes-Bug: #1428374
This commit is contained in:
@@ -31,11 +31,11 @@ class TaskManager(base.ResourceManager):
|
||||
|
||||
return self._update('/tasks/%s' % id, data)
|
||||
|
||||
def list(self, execution_id=None):
|
||||
def list(self, workflow_execution_id=None):
|
||||
url = '/tasks'
|
||||
|
||||
if execution_id:
|
||||
url = '/executions/%s/tasks' % execution_id
|
||||
if workflow_execution_id:
|
||||
url = '/executions/%s/tasks' % workflow_execution_id
|
||||
|
||||
return self._list(url, response_key='tasks')
|
||||
|
||||
|
@@ -40,7 +40,7 @@ def format(task=None):
|
||||
task.id,
|
||||
task.name,
|
||||
task.workflow_name,
|
||||
task.execution_id,
|
||||
task.workflow_execution_id,
|
||||
task.state,
|
||||
)
|
||||
else:
|
||||
|
@@ -26,7 +26,7 @@ TASK_DICT = {
|
||||
'id': '123',
|
||||
'name': 'some',
|
||||
'workflow_name': 'thing',
|
||||
'execution_id': '321',
|
||||
'workflow_execution_id': '321',
|
||||
'state': 'RUNNING',
|
||||
}
|
||||
|
||||
|
@@ -21,7 +21,7 @@ from mistralclient.tests.unit.v2 import base
|
||||
|
||||
TASK = {
|
||||
'id': "1",
|
||||
'execution_id': '123',
|
||||
'workflow_execution_id': '123',
|
||||
'name': 'my_task',
|
||||
'workflow_name': 'my_wf',
|
||||
'state': 'RUNNING',
|
||||
|
Reference in New Issue
Block a user