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
This commit is contained in:
Ekaterina Chernova 2022-07-12 12:56:27 +03:00 committed by Michael Johnson
parent 0d0d339cc6
commit 435f1e7866
2 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Include SECONDARY zone type to 'zone list' command output. Previously only
PRIMARY zones were shown