summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Johnson <johnsomor@gmail.com>2021-10-20 18:45:28 +0000
committerMichael Johnson <johnsomor@gmail.com>2021-10-20 18:46:58 +0000
commit5fbc5b115441c16db6f9381cc62e63537b60a5a8 (patch)
tree26552da0d9511be1a71b161cf6a9249c562cd9d1
parente428a1aed0ffa62ee973b1e14e779bc78f2a42da (diff)
downloadpython-designateclient-5fbc5b115441c16db6f9381cc62e63537b60a5a8.tar.gz
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
-rw-r--r--designateclient/v2/cli/tlds.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/designateclient/v2/cli/tlds.py b/designateclient/v2/cli/tlds.py
index de0537b..7ffe884 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)