Skip to content

Commit 1563613

Browse files
Update responce handling
Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent b82a5c1 commit 1563613

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/user-authenticators/ldap/src/main/java/org/apache/cloudstack/api/command/UnlinkDomainFromLdapCmd.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,11 @@ public Long getDomainId() {
5353
public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException, NetworkRuleConflictException {
5454
boolean rc = _ldapManager.unlinkDomainFromLdap(this);
5555
SuccessResponse response = new SuccessResponse();
56+
response.setSuccess(rc);
5657
if (rc) {
5758
response.setDisplayText("Domain unlinked from LDAP successfully");
58-
response.setSuccess(true);
5959
} else {
6060
response.setDisplayText("Failed to unlink domain from LDAP");
61-
response.setSuccess(false);
6261
}
6362
setResponseObject(response);
6463
}

0 commit comments

Comments
 (0)