bug 8088: Making template sync more robust. If the url is null we cant initiate a download and so mark it as a download error instead.

status 8088: resolved fixed
This commit is contained in:
nit 2011-02-07 14:19:45 +05:30
parent df9003b0b6
commit 0f12529353

View File

@ -526,6 +526,7 @@ public class DownloadMonitorImpl implements DownloadMonitor {
if(tmpltHost != null){
tmpltHost.setDownloadState(Status.DOWNLOAD_ERROR);
tmpltHost.setDownloadPercent(0);
tmpltHost.setErrorString("Cannot initiate the download as url is null.");
_vmTemplateHostDao.update(tmpltHost.getId(), tmpltHost);
}
continue;