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/base.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/base.py')
| -rw-r--r-- | cinderclient/base.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cinderclient/base.py b/cinderclient/base.py index 44d1149..85dffb6 100644 --- a/cinderclient/base.py +++ b/cinderclient/base.py @@ -24,7 +24,6 @@ import hashlib import os import six -from six.moves.urllib import parse from cinderclient.apiclient import base as common_base from cinderclient import exceptions @@ -170,10 +169,8 @@ class Manager(common_base.HookableMixin): query_params = utils.unicode_key_value_to_string(query_params) # Transform the dict to a sequence of two-element tuples in fixed # order, then the encoded string will be consistent in Python 2&3. - 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) detail = "" if detailed: |
