Merge branch 'master' of ssh://git.cloud.com/var/lib/git/cloudstack-oss

This commit is contained in:
Jessica Wang 2010-10-29 20:38:34 -07:00
commit a1293ea882
2 changed files with 2 additions and 2 deletions

View File

@ -613,7 +613,7 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory {
String guid = details.get("guid");
List<HostVO> kvmHosts = _hostDao.listBy(Host.Type.Routing, clusterId, podId, dcId);
for (HostVO host: kvmHosts) {
if (host.getGuid() == guid) {
if (host.getGuid().equalsIgnoreCase(guid)) {
hosts.add(host);
return hosts;
}

View File

@ -253,7 +253,7 @@ public class KvmServerDiscoverer extends DiscovererBase implements Discoverer,
for (int i = 0; i < _waitTime; i++) {
List<HostVO> hosts = _hostDao.listBy(Host.Type.Routing, clusterId, podId, dcId);
for (HostVO host : hosts) {
if (host.getGuid() == guid) {
if (host.getGuid().equalsIgnoreCase(guid)) {
return host;
}
}