diff options
Diffstat (limited to 'saharaclient/api/cluster_templates.py')
-rw-r--r-- | saharaclient/api/cluster_templates.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/saharaclient/api/cluster_templates.py b/saharaclient/api/cluster_templates.py index 7bb3f61..44f4bc5 100644 --- a/saharaclient/api/cluster_templates.py +++ b/saharaclient/api/cluster_templates.py @@ -60,8 +60,9 @@ class ClusterTemplateManager(base.ResourceManager): return self._update('/cluster-templates/%s' % cluster_template_id, data, 'cluster_template') - def list(self): - return self._list('/cluster-templates', 'cluster_templates') + def list(self, search_opts=None): + query = base.get_query_string(search_opts) + return self._list('/cluster-templates%s' % query, 'cluster_templates') def get(self, cluster_template_id): return self._get('/cluster-templates/%s' % cluster_template_id, |