Merge pull request #924 from hkariti/route53_public_zones
Fix KeyError in public zones in route53
This commit is contained in:
commit
df835f8be9
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ def main():
|
||||||
for r53zone in results['ListHostedZonesResponse']['HostedZones']:
|
for r53zone in results['ListHostedZonesResponse']['HostedZones']:
|
||||||
# only save this zone id if the private status of the zone matches
|
# only save this zone id if the private status of the zone matches
|
||||||
# the private_zone_in boolean specified in the params
|
# the private_zone_in boolean specified in the params
|
||||||
if module.boolean(r53zone['Config']['PrivateZone']) == private_zone_in:
|
if module.boolean(r53zone['Config'].get('PrivateZone', False)) == private_zone_in:
|
||||||
zone_id = r53zone['Id'].replace('/hostedzone/', '')
|
zone_id = r53zone['Id'].replace('/hostedzone/', '')
|
||||||
zones[r53zone['Name']] = zone_id
|
zones[r53zone['Name']] = zone_id
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue