mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
scheduler: adjust skip network filter condition
This commit is contained in:
@@ -49,7 +49,7 @@ func (p *NetworkPredicate) Clone() core.FitPredicate {
|
||||
|
||||
func (p *NetworkPredicate) PreExecute(u *core.Unit, cs []core.Candidater) (bool, error) {
|
||||
data := u.SchedData()
|
||||
if len(data.HostId) > 0 && len(data.Networks) == 0 {
|
||||
if len(data.Networks) == 0 {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user