weizhouapache commented on code in PR #7848:
URL: https://github.com/apache/cloudstack/pull/7848#discussion_r1296897182
##########
server/src/main/java/com/cloud/template/TemplateManagerImpl.java:
##########
@@ -1215,7 +1215,7 @@ public TemplateInfo prepareIso(long isoId, long dcId,
Long hostId, Long poolId)
tmplt = _tmplFactory.getReadyBypassedTemplateOnPrimaryStore(isoId,
poolId, hostId);
bypassed = true;
} else {
- tmplt = _tmplFactory.getTemplate(isoId, DataStoreRole.Image, dcId);
+ tmplt = _tmplFactory.getReadyTemplateOnImageStore(isoId, dcId);
Review Comment:
yes, in most cases, the templates/isoes are synced to all image stores, so
it does not matter which image store will be used.
however, if template is Ready on one of the image stores ... this PR might
be helpful
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]