mirror of https://github.com/apache/cloudstack.git
bug 11190: My changes got reverted. Putting them back - Treating the max account limits with -1 values as infinite
This commit is contained in:
parent
cc1c6347da
commit
22cca97894
|
|
@ -370,7 +370,7 @@ public class AccountManagerImpl implements AccountManager, AccountService, Manag
|
|||
// Check account limits
|
||||
long accountLimit = findCorrectResourceLimit(account.getId(), type);
|
||||
long potentialCount = _resourceCountDao.getAccountCount(account.getId(), type) + numResources;
|
||||
if (potentialCount > accountLimit) {
|
||||
if (accountLimit != -1 && potentialCount > accountLimit) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue