mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: move all consts in compute/models to apis/compute
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
package predicates
|
||||
|
||||
import (
|
||||
"yunion.io/x/onecloud/pkg/compute/models"
|
||||
computeapi "yunion.io/x/onecloud/pkg/apis/compute"
|
||||
"yunion.io/x/onecloud/pkg/scheduler/core"
|
||||
)
|
||||
|
||||
@@ -49,7 +49,7 @@ func (p *ResourceTypePredicate) Execute(u *core.Unit, c core.Candidater) (bool,
|
||||
h.Exclude2("resource_type", hostResType, reqResType)
|
||||
}
|
||||
|
||||
if hostResType == models.HostResourceTypePrepaidRecycle {
|
||||
if hostResType == computeapi.HostResourceTypePrepaidRecycle {
|
||||
if c.GetGuestCount() == 0 {
|
||||
h.SetCapacity(1)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user