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

This commit is contained in:
屈轩
2025-11-04 20:56:34 +08:00
committed by GitHub
parent 16aa081789
commit 2cae726280
@@ -68,7 +68,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
}