Skip to content

Commit

Permalink
Fix Route53HostedZone loopvar scoping after migrating to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
sbocinec committed Dec 17, 2024
1 parent ffd2e75 commit 25b12f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aws/resources/route53_hostedzone.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ func (r *Route53HostedZone) getAll(_ context.Context, configObj config.Config) (
return nil, err
}

for _, zone := range result.HostedZones {
for _, z := range result.HostedZones {
zone := z
if configObj.Route53HostedZone.ShouldInclude(config.ResourceValue{
Name: zone.Name,
}) {
Expand Down

0 comments on commit 25b12f7

Please sign in to comment.