CLOUDSTACK-3246: Unable to use portable ips if the portable ip range is deleted and readded atleast once. Fixed the query used to look for available portable ips.

This commit is contained in:
Devdeep Singh 2013-06-27 08:16:54 -07:00
parent fc357e9831
commit b5a16cda0c
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class PortableIpDaoImpl extends GenericDaoBase<PortableIpVO, Long> implem
listByRangeIDAndStateSearch.done();
listByRegionIDAndStateSearch = createSearchBuilder();
listByRegionIDAndStateSearch.and("regionId", listByRegionIDAndStateSearch.entity().getRangeId(), SearchCriteria.Op.EQ);
listByRegionIDAndStateSearch.and("regionId", listByRegionIDAndStateSearch.entity().getRegionId(), SearchCriteria.Op.EQ);
listByRegionIDAndStateSearch.and("state", listByRegionIDAndStateSearch.entity().getState(), SearchCriteria.Op.EQ);
listByRegionIDAndStateSearch.done();