fix guest check quota on change config

This commit is contained in:
wanyaoqi
2019-07-22 18:23:32 +08:00
parent 419343a1d1
commit 5ab7635283
+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)
}