bug 9809: resume iso download (broken by multihypervisor)

status 9809: resolved fixed
This commit is contained in:
Chiradeep Vittal 2011-05-11 12:04:12 -07:00
parent 8368355b31
commit f1ea4d0c19
1 changed files with 1 additions and 0 deletions

View File

@ -549,6 +549,7 @@ public class DownloadMonitorImpl implements DownloadMonitor {
List<HypervisorType> availHypers = _clusterDao.getAvailableHypervisorInZone(sserver.getDataCenterId());
/* Baremetal need not to download any template */
availHypers.remove(HypervisorType.BareMetal);
availHypers.add(HypervisorType.None); //bug 9809: resume ISO download.
for (VMTemplateVO tmplt: toBeDownloaded) {
if (tmplt.getUrl() == null){ // If url is null we cant initiate the download so mark it as an error.