mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
scheduler: support sharable candidate
This commit is contained in:
@@ -20,7 +20,7 @@ func (p *DomainPredicate) Execute(u *core.Unit, c core.Candidater) (bool, []core
|
||||
h := NewPredicateHelper(p, u, c)
|
||||
getter := c.Getter()
|
||||
cloudprovider := getter.Cloudprovider()
|
||||
if cloudprovider == nil {
|
||||
if cloudprovider == nil || getter.IsPublic() {
|
||||
return h.GetResult()
|
||||
}
|
||||
domainId := getter.DomainId()
|
||||
|
||||
Reference in New Issue
Block a user