openstack cli - show available columns

Bug #1712876 reported by Dan Kirkwood
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cliff
Fix Released
Undecided
Dan Kirkwood
openstack-user-stories
Invalid
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').

Revision history for this message
Dan Kirkwood (dangogh) wrote :

I see that this actually should have been filed against `cliff`, and I have the fix in-hand. Can it be reassigned?

Revision history for this message
Steve Martinelli (stevemar) wrote :

@dangogh, certainly, and yeah, its a cliff bug. for the record, bugs against the CLI are filed against "python-openstackclient", i have no idea what "openstack-user-stories" is :)

Changed in openstack-user-stories:
status: New → Invalid
Changed in python-cliff:
assignee: nobody → Dan Kirkwood (dangogh)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cliff (master)

Reviewed: https://review.openstack.org/498277
Committed: https://git.openstack.org/cgit/openstack/cliff/commit/?id=9ce5e930e5f3db436f01e5963b2b3bf262108dec
Submitter: Jenkins
Branch: master

commit 9ce5e930e5f3db436f01e5963b2b3bf262108dec
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: I2f251966fc1286b286b8625ebee5bb431aad232e

Changed in python-cliff:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cliff 2.9.0

This issue was fixed in the openstack/cliff 2.9.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.