Skip to content

Commit ad56bf7

Browse files
committed
fix 13130
1 parent a7c2a05 commit ad56bf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/main/java/com/cloud/resource/ResourceManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ private boolean isClusterWideMigrationPossible(Host host, List<VMInstanceVO> vms
14641464
*/
14651465
private void migrateAwayVmWithVolumes(HostVO host, VMInstanceVO vm) {
14661466
final DataCenterDeployment plan = new DataCenterDeployment(host.getDataCenterId(), host.getPodId(), host.getClusterId(), null, null, null);
1467-
ServiceOfferingVO offeringVO = serviceOfferingDao.findById(vm.getServiceOfferingId());
1467+
ServiceOfferingVO offeringVO = serviceOfferingDao.findById(vm.getId(), vm.getServiceOfferingId());
14681468
final VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm, null, offeringVO, null, null);
14691469
plan.setMigrationPlan(true);
14701470
DeployDestination dest = getDeployDestination(vm, profile, plan, host);

0 commit comments

Comments
 (0)