Merge pull request #2950 from hosseinsh/route53-private-zone-fix
fixing the private DNS zone issue.
This commit is contained in:
commit
f71a9e0ad2
|
@ -35,9 +35,10 @@ def get_zones(client=None):
|
||||||
zones = []
|
zones = []
|
||||||
for page in paginator.paginate():
|
for page in paginator.paginate():
|
||||||
for zone in page["HostedZones"]:
|
for zone in page["HostedZones"]:
|
||||||
zones.append(
|
if not zone["Config"]["PrivateZone"]:
|
||||||
zone["Name"][:-1]
|
zones.append(
|
||||||
) # We need [:-1] to strip out the trailing dot.
|
zone["Name"][:-1]
|
||||||
|
) # We need [:-1] to strip out the trailing dot.
|
||||||
return zones
|
return zones
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue