mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-07 23:09:17 +08:00
fix(region): storage add unmount status
This commit is contained in:
@@ -93,7 +93,7 @@ func (p *DiskSchedtagPredicate) IsResourceMatchInput(input ISchedtagCustomer, re
|
||||
|
||||
func (p *DiskSchedtagPredicate) IsResourceFitInput(u *core.Unit, c core.Candidater, res ISchedtagCandidateResource, input ISchedtagCustomer) core.PredicateFailureReason {
|
||||
storage := res.(*api.CandidateStorage)
|
||||
if storage.Status == computeapi.STORAGE_OFFLINE || storage.Enabled.IsFalse() {
|
||||
if storage.Status != computeapi.STORAGE_ONLINE || storage.Enabled.IsFalse() {
|
||||
return &FailReason{
|
||||
fmt.Sprintf("Storage status is %s, enable is %v", storage.Status, storage.Enabled),
|
||||
StorageEnable,
|
||||
|
||||
Reference in New Issue
Block a user