diff options
Diffstat (limited to 'saharaclient/api/jobs.py')
-rw-r--r-- | saharaclient/api/jobs.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/saharaclient/api/jobs.py b/saharaclient/api/jobs.py index d3231eb..6e10ccd 100644 --- a/saharaclient/api/jobs.py +++ b/saharaclient/api/jobs.py @@ -34,8 +34,9 @@ class JobsManager(base.ResourceManager): return self._create('/jobs', data, 'job') - def list(self): - return self._list('/jobs', 'jobs') + def list(self, search_opts=None): + query = base.get_query_string(search_opts) + return self._list('/jobs%s' % query, 'jobs') def get(self, job_id): return self._get('/jobs/%s' % job_id, 'job') |