mirror of https://github.com/apache/cloudstack.git
Merge cd9530d48b into cd5bb09d0d
This commit is contained in:
commit
5f09250714
|
|
@ -296,6 +296,9 @@ public class TemplateDataFactoryImpl implements TemplateDataFactory {
|
|||
@Override
|
||||
public boolean isTemplateMarkedForDirectDownload(long templateId) {
|
||||
VMTemplateVO templateVO = imageDataDao.findById(templateId);
|
||||
if (templateVO == null) {
|
||||
throw new CloudRuntimeException(String.format("Template not found with ID: %s", templateId));
|
||||
}
|
||||
return templateVO.isDirectDownload();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue