diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index 0394481..22facef 100755 --- a/code/ddns-lambda.py +++ b/code/ddns-lambda.py @@ -1269,7 +1269,7 @@ def new_list_hosted_zones_by_vpc(client, instance_id, vpc_id, region): if not token: this_hosted_zones = client.list_hosted_zones_by_vpc( VPCId=vpc_id, VPCRegion=region, MaxItems='100') - hosted_zones.extend(this_hosted_zone['HostedZoneSummaries']) + hosted_zones.extend(this_hosted_zones['HostedZoneSummaries']) token = this_hosted_zones.get('NextToken', None) LOGGER.debug( f"list_hosted_zones_by_vpc retry {i} iteration {c} returned without error (more available) {token!=None}. {lineno()}") @@ -1277,7 +1277,7 @@ def new_list_hosted_zones_by_vpc(client, instance_id, vpc_id, region): c += 1 this_hosted_zones = client.list_hosted_zones_by_vpc( VPCId=vpc_id, VPCRegion=region, MaxItems='100', NextToken=token) - hosted_zones.extend(this_hosted_zone['HostedZoneSummaries']) + hosted_zones.extend(this_hosted_zones['HostedZoneSummaries']) token = this_hosted_zones.get('NextToken', None) LOGGER.debug( f"list_hosted_zones_by_vpc retry {i} iteration {c} returned without error (more available) {token!=None}. {lineno()}")