Skip to content

Commit 25f7494

Browse files
committed
server: fix pod retrieval during volume attach
Fixes issue highlighted in apache#9315 (comment) Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 97be6f2 commit 25f7494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,7 @@ protected VolumeVO getVmExistingVolumeForVolumeAttach(UserVmVO vm, VolumeInfo vo
24292429
protected StoragePool getPoolForAllocatedOrUploadedVolumeForAttach(final VolumeInfo volumeToAttach, final UserVmVO vm) {
24302430
DataCenter zone = _dcDao.findById(vm.getDataCenterId());
24312431
Pair<Long, Long> clusterHostId = virtualMachineManager.findClusterAndHostIdForVm(vm, false);
2432-
long podId = vm.getPodIdToDeployIn();
2432+
Long podId = vm.getPodIdToDeployIn();
24332433
if (clusterHostId.first() != null) {
24342434
Cluster cluster = clusterDao.findById(clusterHostId.first());
24352435
podId = cluster.getPodId();

0 commit comments

Comments
 (0)