Merge pull request #1837 from wanyaoqi/bugfix/wyq/fix-check-quota-guest-change-config

bugfix: fix guest check quota on change config
This commit is contained in:
yunion-ci-robot
2019-07-23 12:05:04 +08:00
committed by GitHub
+1 -1
View File
@@ -2050,7 +2050,7 @@ func (self *SGuest) PerformChangeConfig(ctx context.Context, userCred mcclient.T
quotaPlatform := self.GetQuotaPlatformID()
if !pendingUsage.IsEmpty() {
err := QuotaManager.CheckSetPendingQuota(ctx, userCred, rbacutils.ScopeProject, userCred, quotaPlatform, pendingUsage)
err := QuotaManager.CheckSetPendingQuota(ctx, userCred, rbacutils.ScopeProject, self.GetOwnerId(), quotaPlatform, pendingUsage)
if err != nil {
return nil, httperrors.NewOutOfQuotaError("Check set pending quota error %s", err)
}