inaccurate info when unable to find the right cmd

Bug #1387538 reported by yalei wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cliff
Fix Released
High
yalei wang

Bug Description

as a bug find in this link:
https://launchpad.net/bugs/1380030

$ neutron port-aaa $xxxx --fixed-ips type=dict list=true ip_address='10.0.0.120'
Invalid command u'--fixed-ips'

but it should output port-aaa here,

after some debug, we find find_command in cliff/commandmanager.py could not give a effective name return by ValueError.

yalei wang (yalei-wang)
Changed in python-cliff:
assignee: nobody → yalei wang (yalei-wang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cliff (master)

Fix proposed to branch: master
Review: https://review.openstack.org/131950

Changed in python-cliff:
status: New → In Progress
Changed in python-cliff:
milestone: none → next-kilo
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cliff (master)

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

commit f6e9bbd99259de2a0983fd2444e5c8a897d54b95
Author: Yalei Wang <email address hidden>
Date: Thu Oct 30 16:38:26 2014 +0800

    print the real error cmd argument

    the find_command in cliff commandmanager will loop all the arguments, but the
    name of the real one should be output with ValueError in a special case.

    Change-Id: Ia5aefeb1e1689467cad652eb13cd911dad64184b
    Closes-Bug: 1387538

Changed in python-cliff:
status: In Progress → Fix Committed
Changed in python-cliff:
status: Fix Committed → Fix Released
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.