Skip to content

Commit bc76a3f

Browse files
authored
Fix route53 zone (#56)
1 parent b7c452d commit bc76a3f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/aws/route53.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ func GetDNSZoneByNameE(t *testing.T, ctx context.Context, hostName string, awsRe
3434

3535
// Find exact match as ListHostedZonesByName returns zones in lexicographic order
3636
for _, zone := range response.HostedZones {
37-
if zone.Name != nil && *zone.Name == hostName {
38-
return &zone, nil
39-
}
37+
return &zone, nil
4038
}
4139
return nil, fmt.Errorf("no exact match found for hosted zone %s", hostName)
4240
}

0 commit comments

Comments
 (0)