mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-07-01 03:24:29 +08:00
Merge pull request #6353 from zexi/hotfix/scheduler-schedtag-empty-strategy
scheduler: filter disabled cloudprovider
This commit is contained in:
@@ -75,6 +75,9 @@ func (p *StatusPredicate) Execute(u *core.Unit, c core.Candidater) (bool, []core
|
||||
if !utils.IsInStringArray(cloudprovider.HealthStatus, api.CLOUD_PROVIDER_VALID_HEALTH_STATUS) {
|
||||
h.Exclude2("cloud_provider_health_status", cloudprovider.HealthStatus, api.CLOUD_PROVIDER_VALID_HEALTH_STATUS)
|
||||
}
|
||||
if !cloudprovider.Enabled.Bool() {
|
||||
h.Exclude2("cloud_provider_enable", cloudprovider.Enabled.Bool(), true)
|
||||
}
|
||||
}
|
||||
|
||||
return h.GetResult()
|
||||
|
||||
Reference in New Issue
Block a user