sureshanaparti commented on code in PR #8759: URL: https://github.com/apache/cloudstack/pull/8759#discussion_r1519230469
########## server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java: ########## @@ -551,7 +551,8 @@ private StoragePool getStoragePool(final UnmanagedInstanceTO.Disk disk, final Da List<StoragePoolVO> pools = primaryDataStoreDao.listPoolsByCluster(cluster.getId()); pools.addAll(primaryDataStoreDao.listByDataCenterId(zone.getId())); for (StoragePool pool : pools) { - if (StringUtils.contains(pool.getPath(), dsPath)) { + String searchPoolParam = StringUtils.isNotBlank(dsPath) ? dsPath : dsName; Review Comment: ```suggestion String searchPoolPath = StringUtils.isNotBlank(dsPath) ? dsPath : dsName; ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org