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 39
39
import org .apache .log4j .Logger ;
40
40
41
41
import javax .inject .Inject ;
42
+ import java .util .Arrays ;
42
43
import java .util .List ;
43
44
44
45
public class KVMInvestigator extends AdapterBase implements Investigator {
@@ -83,7 +84,7 @@ public Status isAgentAlive(Host agent) {
83
84
return haManager .getHostStatus (agent );
84
85
}
85
86
86
- List <StoragePoolVO > clusterPools = _storagePoolDao .listPoolsByCluster ( agent .getClusterId ());
87
+ List <StoragePoolVO > clusterPools = _storagePoolDao .findPoolsInClusters ( Arrays . asList ( agent .getClusterId ()), null );
87
88
boolean storageSupportHA = storageSupportHa (clusterPools );
88
89
if (!storageSupportHA ) {
89
90
List <StoragePoolVO > zonePools = _storagePoolDao .findZoneWideStoragePoolsByHypervisor (agent .getDataCenterId (), agent .getHypervisorType ());
You can’t perform that action at this time.
0 commit comments