mirror of https://github.com/apache/cloudstack.git
make sure building template is downloaded
This commit is contained in:
parent
7cf46b5946
commit
1aff4d8a9a
|
|
@ -422,7 +422,7 @@ public class DownloadMonitorImpl implements DownloadMonitor {
|
|||
|
||||
for (VMTemplateVO template: toBeDownloaded) {
|
||||
VMTemplateHostVO tmpltHost = _vmTemplateHostDao.findByHostTemplate(sshost.getId(), template.getId());
|
||||
if (tmpltHost == null) {
|
||||
if (tmpltHost == null || tmpltHost.getDownloadState() != Status.DOWNLOADED) {
|
||||
downloadTemplateToStorage(template, sshost);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue