find templates that are not removed

This commit is contained in:
Alex Huang 2011-07-09 13:37:26 -07:00
parent e0cce66bcc
commit 186654b299
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,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){