Skip to content

Commit 9a576ba

Browse files
authored
Merge pull request #44 from inovex/fixZoneSelect
fix: only exclude zones with DELETED status from the list
2 parents 7fb9fa5 + 1125113 commit 9a576ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/designate/provider/provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (p designateProvider) getZones(ctx context.Context) (map[string]string, err
9494

9595
err := p.client.ForEachZone(ctx,
9696
func(zone *zones.Zone) error {
97-
if zone.Type != "" && strings.ToUpper(zone.Type) != "PRIMARY" || zone.Status != "ACTIVE" {
97+
if zone.Type != "" && strings.ToUpper(zone.Type) != "PRIMARY" || zone.Status == "DELETE" {
9898
return nil
9999
}
100100

0 commit comments

Comments
 (0)