mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8491: Host maintenance fails if a vm on it is running a custom service offering VM
This commit is contained in:
parent
258d9b19dd
commit
c21aa89a47
|
|
@ -2347,7 +2347,8 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
|||
throw new CloudRuntimeException("Unable to find " + vmUuid);
|
||||
}
|
||||
|
||||
VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm);
|
||||
ServiceOfferingVO offeringVO = _offeringDao.findById(vm.getId(), vm.getServiceOfferingId());
|
||||
VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm, null, offeringVO, null, null);
|
||||
|
||||
Long hostId = vm.getHostId();
|
||||
if (hostId == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue