add support for sorting project list results
Bug #1596818 reported by
Tom
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Wishlist
|
Tom |
Bug Description
keystone tenant-list command return the results ordered by name.
But "openstack project list" default ordered by id, which won't be much user friendly.
It will be nice if openstack project list result default ordered by name.. and the user can also pass as a argument also.
openstack project list --sort id
Changed in python-openstackclient: | |
assignee: | nobody → Tom (tomjosekal) |
Changed in python-openstackclient: | |
importance: | Undecided → Wishlist |
Changed in python-openstackclient: | |
status: | Triaged → In Progress |
summary: |
- Openstack project list default sorted by id + add support for sorting project list results |
To post a comment you must log in.
the server side does not support this, we could do client side ordering, we even have a helper function here: https:/ /github. com/openstack/ osc-lib/ blob/master/ osc_lib/ utils.py# L353
the resulting command would be ``openstack project list --sort name[:desc]``
I'd prefer to not have this enabled by default since it would slow things down, it's probably not OSC sorting by ID, but probably keystone itself