mirror of https://github.com/apache/cloudstack.git
Merge 320d989c8c into bce3e54a7e
This commit is contained in:
commit
39c1a1a1f6
|
|
@ -1318,9 +1318,10 @@ public class TemplateServiceImpl implements TemplateService {
|
|||
if (_vmTemplateStoreDao.isTemplateMarkedForDirectDownload(tmplt.getId())) {
|
||||
continue;
|
||||
}
|
||||
tmpltStore =
|
||||
new TemplateDataStoreVO(storeId, tmplt.getId(), new Date(), 100, Status.DOWNLOADED, null, null, null,
|
||||
TemplateConstants.DEFAULT_SYSTEM_VM_TEMPLATE_PATH + tmplt.getId() + '/', tmplt.getUrl());
|
||||
String templateDirectoryPath = TemplateConstants.DEFAULT_TMPLT_ROOT_DIR + File.separator + TemplateConstants.DEFAULT_TMPLT_FIRST_LEVEL_DIR;
|
||||
String installPath = templateDirectoryPath + tmplt.getAccountId() + File.separator + tmplt.getId() + File.separator;
|
||||
tmpltStore = new TemplateDataStoreVO(storeId, tmplt.getId(), new Date(), 100, Status.DOWNLOADED,
|
||||
null, null, null, installPath, tmplt.getUrl());
|
||||
tmpltStore.setSize(0L);
|
||||
tmpltStore.setPhysicalSize(0); // no size information for
|
||||
// pre-seeded system vm templates
|
||||
|
|
|
|||
Loading…
Reference in New Issue