mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge pull request #1842 from anshul1886/CLOUDSTACK-9686
CLOUDSTACK-9686: Fixed multiple entires for builtin template in template
This commit is contained in:
commit
0fefc207f0
@ -265,7 +265,7 @@ public class TemplateServiceImpl implements TemplateService {
|
||||
|
||||
for (VMTemplateVO template : toBeDownloaded) {
|
||||
TemplateDataStoreVO tmpltHost = _vmTemplateStoreDao.findByStoreTemplate(store.getId(), template.getId());
|
||||
if (tmpltHost == null || tmpltHost.getState() != ObjectInDataStoreStateMachine.State.Ready) {
|
||||
if (tmpltHost == null) {
|
||||
associateTemplateToZone(template.getId(), dcId);
|
||||
s_logger.info("Downloading builtin template " + template.getUniqueName() + " to data center: " + dcId);
|
||||
TemplateInfo tmplt = _templateFactory.getTemplate(template.getId(), DataStoreRole.Image);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user