Skip to content

Commit

Permalink
Merge pull request #7204 from cPu1/fix-zone-mapping
Browse files Browse the repository at this point in the history
Ignore unsupported zone types when creating a zone mapping
  • Loading branch information
cPu1 authored Dec 27, 2023
2 parents b76fef9 + 3b22172 commit b9e936c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/vpc/zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ func DiscoverZoneTypes(ctx context.Context, ec2API awsapi.EC2, region string) (m
zoneTypeMapping[*z.ZoneName] = ZoneTypeAvailabilityZone
case "local-zone":
zoneTypeMapping[*z.ZoneName] = ZoneTypeLocalZone
default:
return nil, fmt.Errorf("expected zone type to be local or AZ; got %s", *z.ZoneType)
}
}
return zoneTypeMapping, nil
Expand Down

0 comments on commit b9e936c

Please sign in to comment.