Support naive filtering in python API
Change-Id: I10caecf68c73e7c722a9ab93a718b80c588d4d0e
This commit is contained in:
@@ -31,8 +31,13 @@ class TaskManager(base.ResourceManager):
|
|||||||
|
|
||||||
return self._update('/tasks/%s' % id, data)
|
return self._update('/tasks/%s' % id, data)
|
||||||
|
|
||||||
def list(self):
|
def list(self, execution_id=None):
|
||||||
return self._list('/tasks', response_key='tasks')
|
url = '/tasks'
|
||||||
|
|
||||||
|
if execution_id:
|
||||||
|
url = '/executions/%s/tasks' % execution_id
|
||||||
|
|
||||||
|
return self._list(url, response_key='tasks')
|
||||||
|
|
||||||
def get(self, id):
|
def get(self, id):
|
||||||
self._ensure_not_empty(id=id)
|
self._ensure_not_empty(id=id)
|
||||||
|
Reference in New Issue
Block a user