fixed template checksum command

This commit is contained in:
anthony 2011-06-28 18:35:04 -07:00
parent 42c01aad2c
commit 90cdf16509
1 changed files with 1 additions and 0 deletions

View File

@ -734,6 +734,7 @@ public class DownloadMonitorImpl implements DownloadMonitor {
private void checksumSync(long hostId){
SearchCriteria<VMTemplateHostVO> sc = ReadyTemplateStatesSearch.create();
sc.setParameters("download_state", com.cloud.storage.VMTemplateStorageResourceAssoc.Status.DOWNLOADED);
sc.setParameters("host_id", hostId);
List<VMTemplateHostVO> templateHostRefList = _vmTemplateHostDao.search(sc, null);
s_logger.debug("Found " +templateHostRefList.size()+ " templates with no checksum. Will ask for computation");