Skip to content

Commit fa43e59

Browse files
Update server/src/main/java/com/cloud/api/query/QueryManagerImpl.java
Co-authored-by: Suresh Kumar Anaparti <[email protected]>
1 parent 3f691bf commit fa43e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/api/query/QueryManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ private Pair<List<Long>, Integer> searchForUserVMIdsAndCount(ListVMsCmd cmd) {
16311631
userVmSearchCriteria.setParameters("hostId", hostId);
16321632
}
16331633

1634-
if (storageId != null /* than pool != null as well */) {
1634+
if (storageId != null) {
16351635
if (pool.getPoolType().equals(Storage.StoragePoolType.DatastoreCluster)) {
16361636
List<StoragePoolVO> childDatastores = storagePoolDao.listChildStoragePoolsInDatastoreCluster(storageId);
16371637
userVmSearchCriteria.setJoinParameters("volume", "storagePoolId", childDatastores.stream().map(StoragePoolVO::getId).toArray());

0 commit comments

Comments
 (0)