fix: move all consts in compute/models to apis/compute

This commit is contained in:
Qiu Jian
2019-04-17 09:23:19 +08:00
parent 3ddbda206c
commit da57161fd0
226 changed files with 1868 additions and 1785 deletions
@@ -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 {