Unformated output of "command list"

Bug #1545609 reported by Sheel Rana on 2016-02-15
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fix Released
Brandon Palm

Bug Description

Output of "command list" is not in readable format.
Refer below for reference:

(openstack) command list

| Command Group | Commands |
| openstack.cli | ['module list', 'command list'] |
| openstack.compute.v2 | ['hypervisor stats show', 'security group create', 'security group rule list', 'server unset', 'keypair list', 'flavor unset', 'keypair delete', 'host list', 'keypair create', 'server pause', 'server reboot', 'server migrate', 'server set', 'host show', 'server unrescue', 'usage list', 'server add volume', 'server unlock', 'security group set', 'compute agent create', 'server rescue', 'server add security group', 'console log show', 'compute agent delete', 'server ssh', 'server lock', 'server stop', 'server show', 'server suspend', 'keypair show', 'server image create', 'flavor list', 'server remove volume', 'security group delete', 'aggregate add host', 'aggregate remove host', 'server remove security group', 'ip floating remove', 'aggregate create', 'hypervisor show', 'ip floating list', 'aggregate delete', 'flavor set', 'security group rule create', 'compute agent set', 'server rebuild', 'server start', 'flavor delete', 'server delete', 'server resume', 'usage show', 'availability zone list', 'hypervisor list', 'flavor create', 'console url show', 'ip fixed add', 'server create', 'aggregate show', 'compute agent list', 'flavor show', 'ip fixed remove', 'ip floating create', 'server list', 'compute service delete', 'ip floating add', 'security group show', 'server resize', 'ip floating delete', 'compute service set', 'security group list', 'ip floating pool list', 'project usage list', 'aggregate set', 'aggregate list', 'server unpause', 'compute service list', 'security group rule delete'] |
| openstack.network.v2 | ['network set', 'network show', 'network list', 'network delete', 'network create'] |
| openstack.image.v2 | ['image set', 'image add project', 'image delete', 'image remove project', 'image create', 'image list', 'image show', 'image save'] |
| openstack.volume.v1 | ['volume qos set', 'snapshot show', 'volume qos list', 'backup create', 'volume list', 'snapshot delete', 'backup list', 'volume show', 'snapshot unset', 'volume set', 'volume qos delete', 'backup delete', 'volume create', 'volume qos associate', 'volume type list', 'volume type create', 'backup restore', 'volume qos create', 'volume unset', 'backup show', 'volume qos disassociate', 'volume type delete', 'volume type set', 'snapshot set', 'volume qos unset', 'volume type show', 'snapshot list', 'volume delete', 'snapshot create', 'volume type unset', 'volume qos show'] |
| openstack.identity.v2 | ['project create', 'project list', 'ec2 credentials list', 'service list', 'role remove', 'project show', 'role show', 'endpoint delete', 'project set', 'service create', 'service show', 'endpoint show', 'ec2 credentials create', 'catalog list', 'ec2 credentials delete', 'service delete', 'token issue', 'project delete', 'endpoint list', 'role list', 'user create', 'user delete', 'user show', 'user set', 'role add', 'role delete', 'catalog show', 'token revoke', 'endpoint create', 'user role list', 'role create', 'user list', 'ec2 credentials show'] |
| openstack.object_store.v1 | ['object store account show', 'object set', 'object store account unset', 'container set', 'object save', 'object create', 'object list', 'object delete', 'container list', 'object show', 'container delete', 'object store account set', 'container create', 'container show', 'container save', 'container unset', 'object unset'] |
| openstack.baremetal.v1 | ['baremetal set', 'baremetal create', 'baremetal list', 'baremetal unset', 'baremetal show', 'baremetal delete'] |
| openstack.data_processing.v1 | ['dataprocessing plugin list', 'dataprocessing data source list', 'dataprocessing plugin show', 'dataprocessing data source delete', 'dataprocessing plugin configs get', 'dataprocessing data source create', 'dataprocessing data source show']

description: updated
Changed in python-openstackclient:
assignee: nobody → Sheel Rana (ranasheel2000)
Brandon Palm (bapalm) on 2016-02-18
Changed in python-openstackclient:
assignee: Sheel Rana (ranasheel2000) → Brandon Palm (bapalm)
Changed in python-openstackclient:
status: New → In Progress
Sheel Rana (ranasheel2000) wrote :

Dear Brandon,
I am already working on this.

Reviewed: https://review.openstack.org/281501
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=f0c3b4e69dc56934305442b505d5f5f68579f1f2
Submitter: Jenkins
Branch: master

commit f0c3b4e69dc56934305442b505d5f5f68579f1f2
Author: Brandon Palm <email address hidden>
Date: Wed Feb 17 20:01:23 2016 +0000

    Fixed command list

    The cliff module expects an array of tuples however
    the array that this function was returning was an array
    of tuples that was also containing an array of values for
    the commands attached to each group and the
    cliff module wasn't liking it.

    The output now comes out looking like:

    | openstack.common | limits show |
    | | extension list |
    | openstack.baremetal.v1 | baremetal set |

    Change-Id: Ifa1c149cb5c66ba27dc72bf72d7c8f2f50e42f73
    Closes-Bug: 1545609

Changed in python-openstackclient:
status: In Progress → Fix Released

This issue was fixed in the openstack/python-openstackclient 2.4.0 release.

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

Duplicates of this bug

Other bug subscribers