From 5ef179ffda9b48be2ef73902d19754c7257caa1b Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Wed, 20 Oct 2021 18:45:28 +0000 Subject: [PATCH] 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 5fbc5b115441c16db6f9381cc62e63537b60a5a8) --- designateclient/v2/cli/tlds.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/designateclient/v2/cli/tlds.py b/designateclient/v2/cli/tlds.py index de0537bd..7ffe8847 100644 --- a/designateclient/v2/cli/tlds.py +++ b/designateclient/v2/cli/tlds.py @@ -63,7 +63,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) @@ -104,7 +104,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") @@ -139,7 +139,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)