mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-2627: disassociate ip address - assign return value of releaseIpAddress backend call to the result returned to the API caller
This commit is contained in:
parent
f41d398cf7
commit
c52879b88c
|
|
@ -76,9 +76,9 @@ public class DisassociateIPAddrCmd extends BaseAsyncCmd {
|
|||
UserContext.current().setEventDetails("Ip Id: " + getIpAddressId());
|
||||
boolean result = false;
|
||||
if (!isPortable(id)) {
|
||||
_networkService.releaseIpAddress(getIpAddressId());
|
||||
result = _networkService.releaseIpAddress(getIpAddressId());
|
||||
} else {
|
||||
_networkService.releaseIpAddress(getIpAddressId());
|
||||
result = _networkService.releaseIpAddress(getIpAddressId());
|
||||
}
|
||||
if (result) {
|
||||
SuccessResponse response = new SuccessResponse(getCommandName());
|
||||
|
|
|
|||
Loading…
Reference in New Issue