bug 8456: fixing the upgrade issue

status 8456: resolved fixed
This commit is contained in:
abhishek 2011-02-07 18:34:08 -08:00
parent c85e13fbf9
commit bc4357f7dd
1 changed files with 3 additions and 3 deletions

View File

@ -1098,6 +1098,7 @@ public class ManagementServerImpl implements ManagementServer {
sc.addAnd("systemUse", SearchCriteria.Op.EQ, false);
return _offeringsDao.search(sc, searchFilter);
}
private List<ServiceOfferingVO> searchServiceOfferingsInternal(Account account, Object name, Object id, Long vmId, Object keyword, Filter searchFilter){
@ -1121,7 +1122,6 @@ public class ManagementServerImpl implements ManagementServer {
sc.addAnd("name", SearchCriteria.Op.SC, ssc);
} else if (vmId != null) {
includePublicOfferings = false;
UserVmVO vmInstance = _userVmDao.findById(vmId);
if ((vmInstance == null) || (vmInstance.getRemoved() != null)) {
throw new InvalidParameterValueException("unable to find a virtual machine with id " + vmId);
@ -1174,8 +1174,8 @@ public class ManagementServerImpl implements ManagementServer {
if(includePublicOfferings) {
sol.addAll(_offeringsDao.findPublicServiceOfferings());
}
return sol;
return sol;
}
@Override
public List<ClusterVO> searchForClusters(ListClustersCmd cmd) {