Skip to content

Commit 4bbc65b

Browse files
committed
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.
1 parent 7e44f81 commit 4bbc65b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/org/apache/cloudstack/region/PortableIpDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public PortableIpDaoImpl() {
6969
listByRangeIDAndStateSearch.done();
7070

7171
listByRegionIDAndStateSearch = createSearchBuilder();
72-
listByRegionIDAndStateSearch.and("regionId", listByRegionIDAndStateSearch.entity().getRangeId(), SearchCriteria.Op.EQ);
72+
listByRegionIDAndStateSearch.and("regionId", listByRegionIDAndStateSearch.entity().getRegionId(), SearchCriteria.Op.EQ);
7373
listByRegionIDAndStateSearch.and("state", listByRegionIDAndStateSearch.entity().getState(), SearchCriteria.Op.EQ);
7474
listByRegionIDAndStateSearch.done();
7575

0 commit comments

Comments
 (0)