mirror of https://github.com/apache/cloudstack.git
Fix min balance for API quotaCredits to be optional (#6691)
This commit is contained in:
parent
ba35437da7
commit
14656733d8
|
|
@ -129,9 +129,6 @@ public class QuotaCreditsCmd extends BaseCmd {
|
|||
if (getMinBalance() != null) {
|
||||
_quotaService.setMinBalance(accountId, getMinBalance());
|
||||
}
|
||||
else {
|
||||
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Please set a value for min balance");
|
||||
}
|
||||
|
||||
final QuotaCreditsResponse response = _responseBuilder.addQuotaCredits(accountId, getDomainId(), getValue(), CallContext.current().getCallingUserId(), getQuotaEnforce());
|
||||
response.setResponseName(getCommandName());
|
||||
|
|
|
|||
Loading…
Reference in New Issue