Remove duplicate systemUse clausule when fetching service offerings.

A couple of lines back there is:

        if (isSystem != null) {
            sc.addAnd("systemUse", SearchCriteria.Op.EQ, isSystem);
        }

So it was set redundantly, this can be removed.
This commit is contained in:
Wido den Hollander 2013-01-15 12:14:57 +01:00
parent 0412cb8d92
commit 510450b11b
1 changed files with 0 additions and 1 deletions

View File

@ -760,7 +760,6 @@ public class ManagementServerImpl implements ManagementServer {
sc.addAnd("vm_type", SearchCriteria.Op.EQ, vmTypeStr);
}
sc.addAnd("systemUse", SearchCriteria.Op.EQ, isSystem);
sc.addAnd("removed", SearchCriteria.Op.NULL);
return _offeringsDao.search(sc, searchFilter);