Skip to content

Commit d8a5c89

Browse files
server: get only Ready ISO to mount (#7848)
1 parent c8d6e50 commit d8a5c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/template/TemplateManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ public TemplateInfo prepareIso(long isoId, long dcId, Long hostId, Long poolId)
12151215
tmplt = _tmplFactory.getReadyBypassedTemplateOnPrimaryStore(isoId, poolId, hostId);
12161216
bypassed = true;
12171217
} else {
1218-
tmplt = _tmplFactory.getTemplate(isoId, DataStoreRole.Image, dcId);
1218+
tmplt = _tmplFactory.getReadyTemplateOnImageStore(isoId, dcId);
12191219
}
12201220

12211221
if (tmplt == null || tmplt.getFormat() != ImageFormat.ISO) {

0 commit comments

Comments
 (0)