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 3838import org .apache .cloudstack .storage .datastore .db .StoragePoolVO ;
3939
4040import javax .inject .Inject ;
41+ import java .util .Arrays ;
4142import java .util .List ;
4243
4344public class KVMInvestigator extends AdapterBase implements Investigator {
@@ -81,7 +82,7 @@ public Status isAgentAlive(Host agent) {
8182 return haManager .getHostStatus (agent );
8283 }
8384
84- List <StoragePoolVO > clusterPools = _storagePoolDao .listPoolsByCluster ( agent .getClusterId ());
85+ List <StoragePoolVO > clusterPools = _storagePoolDao .findPoolsInClusters ( Arrays . asList ( agent .getClusterId ()), null );
8586 boolean storageSupportHA = storageSupportHa (clusterPools );
8687 if (!storageSupportHA ) {
8788 List <StoragePoolVO > zonePools = _storagePoolDao .findZoneWideStoragePoolsByHypervisor (agent .getDataCenterId (), agent .getHypervisorType ());
You can’t perform that action at this time.
0 commit comments