Comment 2 for bug 1404020

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-cinderclient (master)

Reviewed: https://review.openstack.org/142964
Committed: https://git.openstack.org/cgit/openstack/python-cinderclient/commit/?id=0560f7883353ea74fd31bf52535883cc18adecf5
Submitter: Jenkins
Branch: master

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.

    Change-Id: I0bdad6d61da83a3924a6b18678afe4722b5778d6
    Closes-Bug: 1404020