Bug 8208 - bare metal provisioning

exclude baremtal when handleTemplateSync
This commit is contained in:
Frank 2011-03-28 16:45:55 -07:00
parent a7ea3ecae3
commit bd3531b374
1 changed files with 2 additions and 0 deletions

View File

@ -522,6 +522,8 @@ public class DownloadMonitorImpl implements DownloadMonitor {
}
/*Only download templates whose hypervirsor type is in the zone*/
List<HypervisorType> availHypers = _clusterDao.getAvailableHypervisorInZone(sserver.getDataCenterId());
/* Baremetal need not to download any template */
availHypers.remove(HypervisorType.BareMetal);
for (VMTemplateVO tmplt: toBeDownloaded) {
if (tmplt.getUrl() == null){ // If url is null we cant initiate the download so mark it as an error.