cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alena1...@apache.org
Subject [2/2] git commit: updated refs/heads/master to c52879b
Date Wed, 22 May 2013 23:21:08 GMT
CLOUDSTACK-2627: disassociate ip address - assign return value of releaseIpAddress backend
call to the result returned to the API caller


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c52879b8
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c52879b8
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c52879b8

Branch: refs/heads/master
Commit: c52879b88c4cc418289e87927f5c10ddbfe62f82
Parents: f41d398
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Authored: Wed May 22 16:14:47 2013 -0700
Committer: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Committed: Wed May 22 16:14:47 2013 -0700

----------------------------------------------------------------------
 .../user/address/DisassociateIPAddrCmd.java        |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c52879b8/api/src/org/apache/cloudstack/api/command/user/address/DisassociateIPAddrCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/address/DisassociateIPAddrCmd.java
b/api/src/org/apache/cloudstack/api/command/user/address/DisassociateIPAddrCmd.java
index 8f78fe3..41691ea 100644
--- a/api/src/org/apache/cloudstack/api/command/user/address/DisassociateIPAddrCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/address/DisassociateIPAddrCmd.java
@@ -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());


Mime
View raw message