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/01 02:29:17 UTC

[20/43] git commit: refs/heads/javelin - Fix a bug in listHosts that returns wrong zoneId for host.

Fix a bug in listHosts that returns wrong zoneId for host.


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

Branch: refs/heads/javelin
Commit: 6b19086874c6354df59373c5b2d1e9310452f211
Parents: dfc9dc1
Author: Min Chen <mi...@citrix.com>
Authored: Fri Jan 25 14:18:25 2013 -0800
Committer: Sheng Yang <sh...@citrix.com>
Committed: Wed Jan 30 10:47:16 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/6b190868/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 e842383..13b777a 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());