You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ke...@apache.org on 2013/02/02 00:27:32 UTC

[4/50] [abbrv] git commit: refs/heads/master - Fix a bug in listHosts that returns wrong zoneId for host.(cherry picked from commit 17c419ceb4979ebef0cb756ad6ed15e5c95dfbd4)

Fix a bug in listHosts that returns wrong zoneId for host.(cherry picked from commit 17c419ceb4979ebef0cb756ad6ed15e5c95dfbd4)

Signed-off-by: Rohit Yadav <bh...@apache.org>


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

Branch: refs/heads/master
Commit: fc7d07305fd184b253401cb9359b26b12d6c21ed
Parents: e9bca76
Author: Min Chen <mi...@citrix.com>
Authored: Fri Jan 25 14:18:25 2013 -0800
Committer: Rohit Yadav <bh...@apache.org>
Committed: Fri Jan 25 14:21:41 2013 -0800

----------------------------------------------------------------------
 .../com/cloud/api/query/dao/HostJoinDaoImpl.java   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/fc7d0730/server/src/com/cloud/api/query/dao/HostJoinDaoImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/query/dao/HostJoinDaoImpl.java b/server/src/com/cloud/api/query/dao/HostJoinDaoImpl.java
index fa7618c..1adff40 100644
--- a/server/src/com/cloud/api/query/dao/HostJoinDaoImpl.java
+++ b/server/src/com/cloud/api/query/dao/HostJoinDaoImpl.java
@@ -77,7 +77,7 @@ public class HostJoinDaoImpl extends GenericDaoBase<HostJoinVO, Long> implements
         hostResponse.setCapabilities(host.getCapabilities());
         hostResponse.setClusterId(host.getClusterUuid());
         hostResponse.setCpuNumber(host.getCpus());
-        hostResponse.setZoneId(host.getUuid());
+        hostResponse.setZoneId(host.getZoneUuid());
         hostResponse.setDisconnectedOn(host.getDisconnectedOn());
         hostResponse.setHypervisor(host.getHypervisorType());
         hostResponse.setHostType(host.getType());