mirror of https://github.com/apache/cloudstack.git
Merge branch 'master' of ssh://git.cloud.com/var/lib/git/cloudstack-oss
This commit is contained in:
commit
a1293ea882
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue