summaryrefslogtreecommitdiff
path: root/saharaclient/api/jobs.py
diff options
context:
space:
mode:
Diffstat (limited to 'saharaclient/api/jobs.py')
-rw-r--r--saharaclient/api/jobs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/saharaclient/api/jobs.py b/saharaclient/api/jobs.py
index 7f92aff..8fdde51 100644
--- a/saharaclient/api/jobs.py
+++ b/saharaclient/api/jobs.py
@@ -38,9 +38,11 @@ class JobsManager(base.ResourceManager):
return self._create('/jobs', data, 'job')
- def list(self, search_opts=None, limit=None, marker=None):
+ def list(self, search_opts=None, limit=None,
+ marker=None, sort_by=None, reverse=None):
"""Get a list of Jobs."""
- query = base.get_query_string(search_opts, limit=limit, marker=marker)
+ query = base.get_query_string(search_opts, limit=limit, marker=marker,
+ sort_by=sort_by, reverse=reverse)
url = "/jobs%s" % query
return self._page(url, 'jobs', limit)