← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1346121] [NEW] Help text for neutron router-create lists 'distributed' as a positional argument

 

Public bug reported:

With the following patch merged:
https://review.openstack.org/#/c/106147/

neutron router-create -h
usage: neutron router-create [-h] [-f {shell,table,value}] [-c COLUMN]
                             [--variable VARIABLE] [--prefix PREFIX]
                             [--request-format {json,xml}]
                             [--tenant-id TENANT_ID] [--admin-state-down]
                             NAME

Create a router for a given tenant.

positional arguments:
  NAME                  Name of router to create.
  distributed           Create a distributed router.

The distributed flag doesn't appear in the usage block, but appears as a
positional argument when it is not.

neutron router-create r1 distributed doesn't work, while neutron router-
create r1 --distributed does.

To summarize:
distributed shouldn't appear in the positional arguments list, but should instead appear in the usage block.

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: cli neutron-client

** Tags added: cli neutron-client

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1346121

Title:
  Help text for neutron router-create lists 'distributed' as a
  positional argument

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  With the following patch merged:
  https://review.openstack.org/#/c/106147/

  neutron router-create -h
  usage: neutron router-create [-h] [-f {shell,table,value}] [-c COLUMN]
                               [--variable VARIABLE] [--prefix PREFIX]
                               [--request-format {json,xml}]
                               [--tenant-id TENANT_ID] [--admin-state-down]
                               NAME

  Create a router for a given tenant.

  positional arguments:
    NAME                  Name of router to create.
    distributed           Create a distributed router.

  The distributed flag doesn't appear in the usage block, but appears as
  a positional argument when it is not.

  neutron router-create r1 distributed doesn't work, while neutron
  router-create r1 --distributed does.

  To summarize:
  distributed shouldn't appear in the positional arguments list, but should instead appear in the usage block.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1346121/+subscriptions


Follow ups

References