Skip to content

Commit 1465673

Browse files
authored
Fix min balance for API quotaCredits to be optional (#6691)
1 parent ba35437 commit 1465673

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

plugins/database/quota/src/main/java/org/apache/cloudstack/api/command/QuotaCreditsCmd.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ public void execute() {
129129
if (getMinBalance() != null) {
130130
_quotaService.setMinBalance(accountId, getMinBalance());
131131
}
132-
else {
133-
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Please set a value for min balance");
134-
}
135132

136133
final QuotaCreditsResponse response = _responseBuilder.addQuotaCredits(accountId, getDomainId(), getValue(), CallContext.current().getCallingUserId(), getQuotaEnforce());
137134
response.setResponseName(getCommandName());

0 commit comments

Comments
 (0)