Browse Source

Fix route53 script for python 3.

pull/557/head
Scott Gustafson 6 years ago
parent
commit
50a9865e71
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dns_scripts/dns_route53.py

+ 1
- 1
dns_scripts/dns_route53.py View File

@ -31,7 +31,7 @@ for zone in response['HostedZones']:
if not zone['Config']['PrivateZone']:
zone_list[zone['Name']] = zone['Id']
for key in sorted(zone_list.iterkeys(), key=len, reverse=True):
for key in sorted(zone_list.keys(), key=len, reverse=True):
if ".{z}".format(z=key) in ".{z}.".format(z=fqdn):
zone_id = zone_list[key]


Loading…
Cancel
Save