Skip to content

Commit af21605

Browse files
committed
fix
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 0f0a1ba commit af21605

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2439,7 +2439,8 @@ protected StoragePool getPoolForAllocatedOrUploadedVolumeForAttach(final VolumeI
24392439
volumeToAttach.getName(), volumeToAttach.getId(), volumeToAttach.getSize(), offering.getTagsArray(),
24402440
offering.isUseLocalStorage(), offering.isRecreatable(),
24412441
volumeToAttach.getTemplateId());
2442-
StoragePool pool = _volumeMgr.findStoragePool(diskProfile, zone, pod, clusterHostId.first(), clusterHostId.second(), vm, null);
2442+
StoragePool pool = _volumeMgr.findStoragePool(diskProfile, zone, pod, clusterHostId.first(),
2443+
clusterHostId.second(), vm, Collections.emptySet());
24432444
if (pool == null) {
24442445
throw new CloudRuntimeException(String.format("Failed to find a primary storage for volume in state: %s", volumeToAttach.getState()));
24452446
}

0 commit comments

Comments
 (0)