mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
server: get only Ready ISO to mount (#7848)
This commit is contained in:
parent
c8d6e50539
commit
d8a5c89060
@ -1215,7 +1215,7 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
|
|||||||
tmplt = _tmplFactory.getReadyBypassedTemplateOnPrimaryStore(isoId, poolId, hostId);
|
tmplt = _tmplFactory.getReadyBypassedTemplateOnPrimaryStore(isoId, poolId, hostId);
|
||||||
bypassed = true;
|
bypassed = true;
|
||||||
} else {
|
} else {
|
||||||
tmplt = _tmplFactory.getTemplate(isoId, DataStoreRole.Image, dcId);
|
tmplt = _tmplFactory.getReadyTemplateOnImageStore(isoId, dcId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tmplt == null || tmplt.getFormat() != ImageFormat.ISO) {
|
if (tmplt == null || tmplt.getFormat() != ImageFormat.ISO) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user