Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 29, 2023
1 parent 2fcd20b commit 1465451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,15 +1269,15 @@ 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()}")
while token:
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()}")
Expand Down

0 comments on commit 1465451

Please sign in to comment.