diff options
author | Ekaterina Chernova <efedorova@mirantis.com> | 2022-07-12 12:56:27 +0300 |
---|---|---|
committer | Michael Johnson <johnsomor@gmail.com> | 2022-07-14 20:26:01 +0000 |
commit | 435f1e78665a03226704637a952e75c30ff2b097 (patch) | |
tree | f04d7480c83a1ccec7082ed8bb038aa8064c5fb6 | |
parent | 0d0d339cc6050122babb82d402c4d045d49c6629 (diff) | |
download | python-designateclient-435f1e78665a03226704637a952e75c30ff2b097.tar.gz |
Include SECONDARY zones into list command output
PRIMARY zone type is set by default, so SECONDARY
zones were not included in the command output.
Now all types are in output by default and specific type
can be passed as an argument like before
Closes-Bug: #1940544
Change-Id: Idbba68ebd3f74bde74f0b50ffcb233673dff2303
-rw-r--r-- | designateclient/v2/cli/zones.py | 2 | ||||
-rw-r--r-- | releasenotes/notes/bug-1940544-9ed7805341dec1ba.yaml | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/designateclient/v2/cli/zones.py b/designateclient/v2/cli/zones.py index cf777ed..6d059c6 100644 --- a/designateclient/v2/cli/zones.py +++ b/designateclient/v2/cli/zones.py @@ -56,7 +56,7 @@ class ListZonesCommand(command.Lister): parser.add_argument('--email', help="Zone Email", required=False) parser.add_argument('--type', help="Zone Type", choices=["PRIMARY", "SECONDARY"], - default="PRIMARY", + default=None, required=False) parser.add_argument('--ttl', help="Time To Live (Seconds)", required=False) diff --git a/releasenotes/notes/bug-1940544-9ed7805341dec1ba.yaml b/releasenotes/notes/bug-1940544-9ed7805341dec1ba.yaml new file mode 100644 index 0000000..efbe164 --- /dev/null +++ b/releasenotes/notes/bug-1940544-9ed7805341dec1ba.yaml @@ -0,0 +1,6 @@ +--- + +fixes: + - | + Include SECONDARY zone type to 'zone list' command output. Previously only + PRIMARY zones were shown
\ No newline at end of file |