openstack cli - show available columns
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| cliff |
Undecided
|
Dan Kirkwood | ||
| openstack-user-stories |
Undecided
|
Unassigned |
Bug Description
using the openstack python cli, column names are not always obvious and must match exactly what the tool expects (including matching case). When no column names given on the cmd line match, print a more useful error message with the names of available columns. e.g.
$ openstack server list -f value -c name -c image
No recognized column names in [u'name', u'image'].
with a small change, this could list the known columns:
No recognized column names in [u'name', u'image']. Recognized columns are ('ID', 'Name', 'Status', 'Networks', 'Image Name').
Dan Kirkwood (dangogh) wrote : | #1 |
Steve Martinelli (stevemar) wrote : | #2 |
@dangogh, certainly, and yeah, its a cliff bug. for the record, bugs against the CLI are filed against "python-
Changed in openstack-user-stories: | |
status: | New → Invalid |
Changed in python-cliff: | |
assignee: | nobody → Dan Kirkwood (dangogh) |
status: | New → In Progress |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9ce5e930e5f3db4
Author: Dan Kirkwood <email address hidden>
Date: Sun Aug 27 16:52:48 2017 -0600
add actual column names to error msg
Closes-Bug: 1712876
Change-Id: I2f251966fc1286
Changed in python-cliff: | |
status: | In Progress → Fix Released |
This issue was fixed in the openstack/cliff 2.9.0 release.
I see that this actually should have been filed against `cliff`, and I have the fix in-hand. Can it be reassigned?