Skip to content

Commit

Permalink
fix: duplicate offerings on cache miss
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal committed Mar 5, 2025
1 parent 05d086b commit 9c6bee9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/providers/instancetype/offering/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ func (p *DefaultProvider) createOfferings(
offering.Requirements.Add(scheduling.NewRequirement(v1.LabelTopologyZoneID, corev1.NodeSelectorOpIn, id))
}
cachedOfferings = append(cachedOfferings, offering)
offerings = append(cachedOfferings, offering)
}
}
p.cache.SetDefault(p.cacheKeyFromInstanceType(it), cachedOfferings)
Expand Down

0 comments on commit 9c6bee9

Please sign in to comment.