openstack cli - show available columns

Bug #1712876 reported by Dan Kirkwood on 2017-08-24
6
This bug affects 1 person
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 :

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

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

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

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  Edit
Everyone can see this information.

Other bug subscribers