incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From muralire...@apache.org
Subject [8/15] git commit: Fix a bug in listHosts that returns wrong zoneId for host.
Date Sun, 27 Jan 2013 17:17:20 GMT
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/17c419ce
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/17c419ce
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/17c419ce

Branch: refs/heads/events-framework
Commit: 17c419ceb4979ebef0cb756ad6ed15e5c95dfbd4
Parents: 2c9e314
Author: Min Chen <min.chen@citrix.com>
Authored: Fri Jan 25 14:18:25 2013 -0800
Committer: Min Chen <min.chen@citrix.com>
Committed: Fri Jan 25 14:18:25 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/17c419ce/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());


Mime
View raw message