diff --git a/pkg/compute/models/regionquota.go b/pkg/compute/models/regionquota.go index e05b2a66ae..6c7e47febc 100644 --- a/pkg/compute/models/regionquota.go +++ b/pkg/compute/models/regionquota.go @@ -348,6 +348,9 @@ func (self *SRegionQuota) Allocable(request quotas.IQuota) int { if self.Cache >= 0 && squota.Cache > 0 && (cnt < 0 || cnt > self.Cache/squota.Cache) { cnt = self.Cache / squota.Cache } + if self.Loadbalancer >= 0 && squota.Loadbalancer > 0 && (cnt < 0 || cnt > self.Loadbalancer/squota.Loadbalancer) { + cnt = self.Loadbalancer / squota.Loadbalancer + } return cnt }