Clarify that name or ID can be used on TLDs
We had a question about whether the TLD name could be used as the
"id" positional argument when show/set/delete a TLD.
This patch clarifies that names or IDs will work with those commands
in the OpenStack client.
Change-Id: I93952596f3c82ae37d903a8ea4dd8700ae8fc314
(cherry picked from commit 5fbc5b1154
)
This commit is contained in:
parent
7503b53adf
commit
5626ce0703
@ -64,7 +64,7 @@ class ShowTLDCommand(command.ShowOne):
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(ShowTLDCommand, self).get_parser(prog_name)
|
||||
|
||||
parser.add_argument('id', help="TLD ID")
|
||||
parser.add_argument('id', help="TLD name or ID")
|
||||
|
||||
common.add_all_common_options(parser)
|
||||
|
||||
@ -105,7 +105,7 @@ class SetTLDCommand(command.ShowOne):
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(SetTLDCommand, self).get_parser(prog_name)
|
||||
|
||||
parser.add_argument('id', help="TLD ID")
|
||||
parser.add_argument('id', help="TLD name or ID")
|
||||
parser.add_argument('--name', help="TLD Name")
|
||||
description_group = parser.add_mutually_exclusive_group()
|
||||
description_group.add_argument('--description', help="Description")
|
||||
@ -140,7 +140,7 @@ class DeleteTLDCommand(command.Command):
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(DeleteTLDCommand, self).get_parser(prog_name)
|
||||
|
||||
parser.add_argument('id', help="TLD ID")
|
||||
parser.add_argument('id', help="TLD name or ID")
|
||||
|
||||
common.add_all_common_options(parser)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user