Skip to content

Commit 0fefc20

Browse files
authored
Merge pull request #1842 from anshul1886/CLOUDSTACK-9686
CLOUDSTACK-9686: Fixed multiple entires for builtin template in template
2 parents 339fe4c + 929595c commit 0fefc20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public void handleSysTemplateDownload(HypervisorType hostHyper, Long dcId) {
265265

266266
for (VMTemplateVO template : toBeDownloaded) {
267267
TemplateDataStoreVO tmpltHost = _vmTemplateStoreDao.findByStoreTemplate(store.getId(), template.getId());
268-
if (tmpltHost == null || tmpltHost.getState() != ObjectInDataStoreStateMachine.State.Ready) {
268+
if (tmpltHost == null) {
269269
associateTemplateToZone(template.getId(), dcId);
270270
s_logger.info("Downloading builtin template " + template.getUniqueName() + " to data center: " + dcId);
271271
TemplateInfo tmplt = _templateFactory.getTemplate(template.getId(), DataStoreRole.Image);

0 commit comments

Comments
 (0)