commit 0560f7883353ea74fd31bf52535883cc18adecf5
Author: Steven Kaufer <email address hidden>
Date: Fri Dec 19 02:56:53 2014 +0000
cinder list fails with 'name' sort key
The client restricts the sort keys that the user can supply. The
'name' key is allowed but is not the correct key for sorting by name,
it should be 'display_name'.
If 'name' is used then the client returns with the error 500
Internal Server Error.
This patch will add support for mapping client sort keys (eg, 'name')
to server sort keys (eg, 'display_name'), allowing the user to supply
the 'name' key to sort by name.
This patch also adds UT for the sort key and direction error cases
when an invalid value is supplied.
Reviewed: https:/ /review. openstack. org/142964 /git.openstack. org/cgit/ openstack/ python- cinderclient/ commit/ ?id=0560f788335 3ea74fd31bf5253 5883cc18adecf5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0560f7883353ea7 4fd31bf52535883 cc18adecf5
Author: Steven Kaufer <email address hidden>
Date: Fri Dec 19 02:56:53 2014 +0000
cinder list fails with 'name' sort key
The client restricts the sort keys that the user can supply. The
'name' key is allowed but is not the correct key for sorting by name,
it should be 'display_name'.
If 'name' is used then the client returns with the error 500
Internal Server Error.
This patch will add support for mapping client sort keys (eg, 'name')
to server sort keys (eg, 'display_name'), allowing the user to supply
the 'name' key to sort by name.
This patch also adds UT for the sort key and direction error cases
when an invalid value is supplied.
Change-Id: I0bdad6d61da83a 3924a6b18678afe 4722b5778d6
Closes-Bug: 1404020