File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
plugins/hypervisors/kvm/src/main/java/com/cloud/ha Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3939import org .apache .log4j .Logger ;
4040
4141import javax .inject .Inject ;
42+ import java .util .Arrays ;
4243import java .util .List ;
4344
4445public class KVMInvestigator extends AdapterBase implements Investigator {
@@ -83,7 +84,7 @@ public Status isAgentAlive(Host agent) {
8384 return haManager .getHostStatus (agent );
8485 }
8586
86- List <StoragePoolVO > clusterPools = _storagePoolDao .listPoolsByCluster ( agent .getClusterId ());
87+ List <StoragePoolVO > clusterPools = _storagePoolDao .findPoolsInClusters ( Arrays . asList ( agent .getClusterId ()), null );
8788 boolean storageSupportHA = storageSupportHa (clusterPools );
8889 if (!storageSupportHA ) {
8990 List <StoragePoolVO > zonePools = _storagePoolDao .findZoneWideStoragePoolsByHypervisor (agent .getDataCenterId (), agent .getHypervisorType ());
You can’t perform that action at this time.
0 commit comments