there are more than one secondary storage in one zone

This commit is contained in:
Edison Su 2011-05-04 15:52:20 -04:00
parent b19ddbff0e
commit fd08ebfb57
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ public class HostDaoImpl extends GenericDaoBase<HostVO, Long> implements HostDao
sc.setParameters("dc", dcId);
List<HostVO> storageHosts = listBy(sc);
if (storageHosts == null || storageHosts.size() != 1) {
if (storageHosts == null) {
return null;
} else {
return storageHosts.get(0);