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:
Alena Prokharchyk 2013-05-22 16:14:47 -07:00
parent f41d398cf7
commit c52879b88c
1 changed files with 2 additions and 2 deletions

View File

@ -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());