find templates that are not removed

This commit is contained in:
Alex Huang 2011-07-09 13:37:26 -07:00
parent 26b3c26974
commit fb8c3c032a

View File

@ -597,7 +597,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
T startedVm = null;
ServiceOfferingVO offering = _offeringDao.findById(vm.getServiceOfferingId());
VMTemplateVO template = _templateDao.findById(vm.getTemplateId());
VMTemplateVO template = _templateDao.findByIdIncludingRemoved(vm.getTemplateId());
DataCenterDeployment plan = new DataCenterDeployment(vm.getDataCenterIdToDeployIn(), vm.getPodIdToDeployIn(), null, null, null);
if(planToDeploy != null){