Removes unicode 'u' response for "cinder get-capabilities"
The output of "cinder get-capabilities" command returns
unicoded response. But it would appear from the utils
class that setting formatters will go through the
capabilities dict and make sure all values are properly
string formatted. Therefore added formatters to return
string formatted response.
Added formatters=sorted(prop.keys()) line instead of
static values as suggested by the reviewer, to avoid
tying server knowledge to the client and also any
update on the server side would easily reflect here.
Reviewed: https:/ /review. openstack. org/454159 /git.openstack. org/cgit/ openstack/ python- cinderclient/ commit/ ?id=c3a22519bcd 91db227146a982b fb281092428f6c
Committed: https:/
Submitter: Zuul
Branch: master
commit c3a22519bcd91db 227146a982bfb28 1092428f6c
Author: Abijitha Nadagouda <email address hidden>
Date: Thu Apr 6 05:30:09 2017 -0700
Removes unicode 'u' response for "cinder get-capabilities"
The output of "cinder get-capabilities" command returns
unicoded response. But it would appear from the utils
class that setting formatters will go through the
capabilities dict and make sure all values are properly
string formatted. Therefore added formatters to return
string formatted response.
Added formatters= sorted( prop.keys( )) line instead of
static values as suggested by the reviewer, to avoid
tying server knowledge to the client and also any
update on the server side would easily reflect here.
Closes-bug: #1680444 ddab42cb925d043 5777b0ffe86
Change-Id: Ie38236db364d59