Comment 1 for bug 1640031

Revision history for this message
Jaspreet Singh Rawel (jaspreetsinghrawel) wrote :

Problem reproduced in cliff version 1.15.0. It is always showing first subcommand of openstack command as invalid command in the log message.

##########
In the below example, I intentionally misspelled "group" as "grou". It is showing "security" subcommand as invalid instead of showing "grou".
##########

root@controller:/usr/lib/python2.7/dist-packages# openstack security grou list
No handlers could be found for logger "openstackclient.shell"
openstack: 'security' is not an openstack command. See 'openstack --help'.
Did you mean one of these?
  security group create
  security group delete
  security group list
  security group rule create
  security group rule delete
  security group rule list
  security group rule show
  security group set
  security group show
  secret container create
  secret container delete
  secret container get
  secret container list
  secret delete
  secret get
  secret list
  secret order create
  secret order delete
  secret order get
  secret order list
  secret store
  secret update
root@controller:/usr/lib/python2.7/dist-packages#

###########
In the below example, I intentionally misspelled "list" as "lst". It is showing "security" subcommand as invalid instead of showing "lst".
###########

root@controller:/usr/lib/python2.7/dist-packages# openstack security group lst
No handlers could be found for logger "openstackclient.shell"
openstack: 'security' is not an openstack command. See 'openstack --help'.
Did you mean one of these?
  security group create
  security group delete
  security group list
  security group rule create
  security group rule delete
  security group rule list
  security group rule show
  security group set
  security group show
  secret container create
  secret container delete
  secret container get
  secret container list
  secret delete
  secret get
  secret list
  secret order create
  secret order delete
  secret order get
  secret order list
  secret store
  secret update
root@controller:/usr/lib/python2.7/dist-packages#