Skip to content

Commit 1125113

Browse files
committed
fix: only exclude zones with DELETED status from the list
Filtering zones on only the ACTIVE status, causes the list of zones to change. Especially the PENDING status is used by Designate during reconciliation processes. Fixes: #33
1 parent 7fb9fa5 commit 1125113

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)