fix(scheduler): sku predicate with empty zone id (#23686)

This commit is contained in:
屈轩
2025-11-04 20:56:30 +08:00
committed by GitHub
parent beb3e9f9fd
commit 8ddca94bdc
@@ -67,7 +67,7 @@ func (p *InstanceTypePredicate) Execute(ctx context.Context, u *core.Unit, c cor
zoneMatch := false
for idx := range skus {
sku := skus[idx]
if sku.ZoneId == zoneId {
if len(sku.ZoneId) == 0 || sku.ZoneId == zoneId {
zoneMatch = true
break
}