Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ public class TemplateDataFactoryImpl implements TemplateDataFactory {

@Override
public TemplateInfo getTemplateOnPrimaryStorage(long templateId, DataStore store, String configuration) {
VMTemplateVO templ = imageDataDao.findById(templateId);
VMTemplateVO templ = imageDataDao.findByIdIncludingRemoved(templateId);
Comment thread
shwstppr marked this conversation as resolved.
Resolved
if (templ == null) {
s_logger.error("Could not find a template with id " + templateId);
return null;
}
if (store.getRole() == DataStoreRole.Primary) {
VMTemplateStoragePoolVO templatePoolVO = templatePoolDao.findByPoolTemplate(store.getId(), templateId, configuration);
if (templatePoolVO != null) {
Expand Down