summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@est.tech>2019-04-08 05:39:56 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-08 05:39:57 +0000
commitc5d18a700d858e06aa1c5d3c1a83dde87d4126f2 (patch)
treeb7e544853c1fa34baedc655abee288ffedf1292e /main
parent8d554587553ab5bd5dff66db81fb45f82f46278c (diff)
parent6aca0a06e0116eee44179dacde646c8034be0437 (diff)
Merge "Add latest-version check to status msg handler"
Diffstat (limited to 'main')
-rw-r--r--main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java b/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
index 711b32a4..e0b00c71 100644
--- a/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
+++ b/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
@@ -140,8 +140,8 @@ public class PdpStatusMessageHandler {
Optional<PdpSubGroup> pdpSubgroup = null;
Optional<Pdp> pdpInstance = null;
- final PdpGroupFilter filter = PdpGroupFilter.builder().name(message.getPdpGroup()).build();
- // TODO setLatestVersion()
+ final PdpGroupFilter filter = PdpGroupFilter.builder().name(message.getPdpGroup())
+ .version(PdpGroupFilter.LATEST_VERSION).build();
final List<PdpGroup> pdpGroups = databaseProvider.getFilteredPdpGroups(filter);
if (!pdpGroups.isEmpty()) {
final PdpGroup pdpGroup = pdpGroups.get(0);