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)
|
||||
|
||||
def list(self):
|
||||
return self._list('/tasks', response_key='tasks')
|
||||
def list(self, execution_id=None):
|
||||
url = '/tasks'
|
||||
|
||||
if execution_id:
|
||||
url = '/executions/%s/tasks' % execution_id
|
||||
|
||||
return self._list(url, response_key='tasks')
|
||||
|
||||
def get(self, id):
|
||||
self._ensure_not_empty(id=id)
|
||||
|
Reference in New Issue
Block a user