This is an automated email from the ASF dual-hosted git repository.

weizhou pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.18 by this push:
     new d8a5c890602 server: get only Ready ISO to mount (#7848)
d8a5c890602 is described below

commit d8a5c8906028314c37f3dd47801a5efda025454f
Author: Wei Zhou <[email protected]>
AuthorDate: Thu Aug 17 11:04:14 2023 +0200

    server: get only Ready ISO to mount (#7848)
---
 server/src/main/java/com/cloud/template/TemplateManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/com/cloud/template/TemplateManagerImpl.java 
b/server/src/main/java/com/cloud/template/TemplateManagerImpl.java
index 1a360c88edb..d1fd204c024 100755
--- a/server/src/main/java/com/cloud/template/TemplateManagerImpl.java
+++ b/server/src/main/java/com/cloud/template/TemplateManagerImpl.java
@@ -1215,7 +1215,7 @@ public class TemplateManagerImpl extends ManagerBase 
implements TemplateManager,
             tmplt = _tmplFactory.getReadyBypassedTemplateOnPrimaryStore(isoId, 
poolId, hostId);
             bypassed = true;
         } else {
-            tmplt = _tmplFactory.getTemplate(isoId, DataStoreRole.Image, dcId);
+            tmplt = _tmplFactory.getReadyTemplateOnImageStore(isoId, dcId);
         }
 
         if (tmplt == null || tmplt.getFormat() != ImageFormat.ISO) {

Reply via email to