mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
fix(scheduler): sku predicate with empty zone id (#23684)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user