Skip to content

Commit

Permalink
server: get only Ready ISO to mount (apache#7848)
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache authored Aug 17, 2023
1 parent c8d6e50 commit d8a5c89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

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

0 comments on commit d8a5c89

Please sign in to comment.