diff options
| author | Mykhailo Dovgal <mdovgal@mirantis.com> | 2016-11-09 16:18:09 +0200 |
|---|---|---|
| committer | Michael Dovgal <mdovgal@mirantis.com> | 2016-12-30 14:01:40 +0000 |
| commit | 797d932d0f564221a9d126d1ca49de36870c62b6 (patch) | |
| tree | 871437a04bbdcb4a004ff5122fea3901ce0432e5 /cinderclient/base.py | |
| parent | 4eb63b8ef278de2e82e3b4957b95ba6fd9032e4f (diff) | |
| download | python-cinderclient-797d932d0f564221a9d126d1ca49de36870c62b6.tar.gz | |
Add convertation of query parameters to string
There are some problems with non-ascii chars and special symbols
during using cinderclient.
This patch closes bug connected with parse.urlencode py27 unicode
encode bug by adding convertation of query parameters before
creating query string in manager._build_list_url method.
Also it fix the problems with encoding in quota commands.
Change-Id: I96269cca7ad203eaad02d87b30c16d970b26b25f
Closes-Bug: #1636621
Closes-Bug: #1518141
Diffstat (limited to 'cinderclient/base.py')
| -rw-r--r-- | cinderclient/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cinderclient/base.py b/cinderclient/base.py index fd783f0..0705a5e 100644 --- a/cinderclient/base.py +++ b/cinderclient/base.py @@ -162,7 +162,7 @@ class Manager(common_base.HookableMixin): if offset: query_params['offset'] = offset - + 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 = "" |
