SWIFT : fix, create vm on zone2

This commit is contained in:
anthony 2011-12-23 16:45:18 -08:00
parent 6e259b2cb1
commit b2b653f7d4
1 changed files with 2 additions and 1 deletions

View File

@ -192,7 +192,8 @@ public class VMTemplateHostDaoImpl extends GenericDaoBase<VMTemplateHostVO, Long
public VMTemplateHostVO findByHostTemplate(long hostId, long templateId) {
SearchCriteria<VMTemplateHostVO> sc = HostTemplateSearch.create();
sc.setParameters("host_id", hostId);
sc.setParameters("template_id", templateId);
sc.setParameters("template_id", templateId);
sc.setParameters("download_state", Status.DOWNLOADED.toString());
return findOneIncludingRemovedBy(sc);
}