Skip to content

Commit

Permalink
Ignore unsupported zone types when creating a zone mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu1 authored and TiberiuGC committed Oct 7, 2024
1 parent 75ec2b9 commit c69fe4e
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 c69fe4e

Please sign in to comment.