mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
should use _hostDao.listByCluster instead of _hostDao.listByPodId in some places
This commit is contained in:
parent
5a4e75ebcd
commit
a93d36d81a
@ -52,7 +52,7 @@ public class XenServerInvestigator extends AdapterBase implements Investigator {
|
||||
}
|
||||
|
||||
CheckOnHostCommand cmd = new CheckOnHostCommand(agent);
|
||||
List<HostVO> neighbors = _hostDao.listByHostPod(agent.getPodId());
|
||||
List<HostVO> neighbors = _hostDao.listByCluster(agent.getClusterId());
|
||||
for (HostVO neighbor : neighbors) {
|
||||
if (neighbor.getId() == agent.getId() || neighbor.getHypervisorType() != HypervisorType.XenServer) {
|
||||
continue;
|
||||
|
||||
@ -1254,7 +1254,9 @@ public class StorageManagerImpl implements StorageManager {
|
||||
}
|
||||
|
||||
List<HostVO> hosts = null;
|
||||
if (podId != null) {
|
||||
if (clusterId != null) {
|
||||
hosts = _hostDao.listByCluster(clusterId);
|
||||
} else if (podId != null) {
|
||||
hosts = _hostDao.listByHostPod(podId);
|
||||
} else {
|
||||
hosts = _hostDao.listByDataCenter(zoneId);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user