Skip to content

Commit b981367

Browse files
committed
Allow searching storage pool by UUID after conversion to support SharedMountPoint
1 parent f952e76 commit b981367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ private StoragePool getStoragePool(final UnmanagedInstanceTO.Disk disk, final Da
569569
pools.addAll(primaryDataStoreDao.listByDataCenterId(zone.getId()));
570570
for (StoragePool pool : pools) {
571571
String searchPoolParam = StringUtils.isNotBlank(dsPath) ? dsPath : dsName;
572-
if (StringUtils.contains(pool.getPath(), searchPoolParam) &&
572+
if ((StringUtils.contains(pool.getPath(), searchPoolParam) || pool.getUuid().equals(searchPoolParam)) &&
573573
volumeApiService.doesStoragePoolSupportDiskOffering(pool, diskOffering)) {
574574
storagePool = pool;
575575
break;

0 commit comments

Comments
 (0)