diff options
| author | Zuul <zuul@review.openstack.org> | 2018-10-03 17:54:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2018-10-03 17:54:19 +0000 |
| commit | 4e17e1d1912f1902a37e4db543e38cdbe3961358 (patch) | |
| tree | c3f4c33af4f194810620b9c90d8dcdeb3bd82454 /cinderclient/v3/groups.py | |
| parent | c73844df2dc1c02637235babb22cd263eaa45a5b (diff) | |
| parent | 223d754f6162d87a305bcb2b041a5e73d5fae303 (diff) | |
| download | python-cinderclient-4.1.0.tar.gz | |
Merge "Fix encoding of query parameters"4.1.0
Diffstat (limited to 'cinderclient/v3/groups.py')
| -rw-r--r-- | cinderclient/v3/groups.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/cinderclient/v3/groups.py b/cinderclient/v3/groups.py index c042e28..e42f750 100644 --- a/cinderclient/v3/groups.py +++ b/cinderclient/v3/groups.py @@ -14,8 +14,6 @@ # under the License. """Group interface (v3 extension).""" -from six.moves.urllib import parse - from cinderclient import api_versions from cinderclient.apiclient import base as common_base from cinderclient import base @@ -140,11 +138,7 @@ class GroupManager(base.ManagerWithFind): :rtype: :class:`Group` """ query_params = utils.unicode_key_value_to_string(kwargs) - - query_string = "" - if query_params: - params = sorted(query_params.items(), key=lambda x: x[0]) - query_string = "?%s" % parse.urlencode(params) + query_string = utils.build_query_param(query_params, sort=True) return self._get("/groups/%s" % group_id + query_string, "group") @@ -159,7 +153,7 @@ class GroupManager(base.ManagerWithFind): if not search_opts: search_opts = {} search_opts['list_volume'] = True - query_string = utils.build_query_param(search_opts) + query_string = utils.build_query_param(search_opts, sort=True) detail = "" if detailed: |
