mirror of https://github.com/apache/cloudstack.git
bug 10482: use version-based systemvm ISO in secondary storage to solve the upgrade issue
This commit is contained in:
parent
61e11bdf6d
commit
7e6e097b58
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue