From 783887007c5208e6dae0601b9307217e464416ed Mon Sep 17 00:00:00 2001 From: Bryan Lima Date: Tue, 30 Aug 2022 10:39:33 -0300 Subject: [PATCH] Fix min balance for API quotaCredits to be optional --- .../org/apache/cloudstack/api/command/QuotaCreditsCmd.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/database/quota/src/main/java/org/apache/cloudstack/api/command/QuotaCreditsCmd.java b/plugins/database/quota/src/main/java/org/apache/cloudstack/api/command/QuotaCreditsCmd.java index f12733d2ce3d..cc707fabefb3 100644 --- a/plugins/database/quota/src/main/java/org/apache/cloudstack/api/command/QuotaCreditsCmd.java +++ b/plugins/database/quota/src/main/java/org/apache/cloudstack/api/command/QuotaCreditsCmd.java @@ -129,9 +129,6 @@ public void execute() { 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());