This is an automated email from the ASF dual-hosted git repository.

weizhou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 4b4dfef96f5 fix simulator CI failure 
test_04_list_storage_pools_keyword_filter (#8814)
4b4dfef96f5 is described below

commit 4b4dfef96f5fed3df690c47aa0fa3f1afbe39477
Author: Wei Zhou <[email protected]>
AuthorDate: Thu Mar 21 22:09:53 2024 +0100

    fix simulator CI failure test_04_list_storage_pools_keyword_filter (#8814)
---
 .../apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java
 
b/engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java
index b8a1c0311ed..e4dd66a86b8 100644
--- 
a/engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java
+++ 
b/engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java
@@ -723,7 +723,7 @@ public class PrimaryDataStoreDaoImpl extends 
GenericDaoBase<StoragePoolVO, Long>
         if (keyword != null) {
             SearchCriteria<StoragePoolVO> ssc = createSearchCriteria();
             ssc.addOr("name", SearchCriteria.Op.LIKE, "%" + keyword + "%");
-            ssc.addOr("poolType", SearchCriteria.Op.LIKE, "%" + keyword + "%");
+            ssc.addOr("poolType", SearchCriteria.Op.LIKE, new 
Storage.StoragePoolType("%" + keyword + "%"));
 
             sc.addAnd("name", SearchCriteria.Op.SC, ssc);
         }

Reply via email to