bug 10482: use version-based systemvm ISO in secondary storage to solve the upgrade issue

This commit is contained in:
Kelven Yang 2011-07-01 14:01:40 -07:00
parent 61e11bdf6d
commit 7e6e097b58
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ public class SecondaryStorageVmDaoImpl extends GenericDaoBase<SecondaryStorageVm
SearchCriteria<SecondaryStorageVmVO> sc = InstanceSearch.create();
sc.setParameters("instanceName", instanceName);
List<SecondaryStorageVmVO> list = listBy(sc);
if( list == null ) {
if( list == null || list.size() == 0 ) {
return null;
} else {
return list.get(0);