summaryrefslogtreecommitdiffstats
path: root/feature-lifecycle/src/main
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2019-04-10 10:25:05 -0500
committerjhh <jorge.hernandez-herrero@att.com>2019-04-10 10:59:14 -0500
commita3188c948acf949984414ca7baf0c32685922d4d (patch)
tree72e0573a20aa0a162a9258604e0dbe14aca060ec /feature-lifecycle/src/main
parent3a5ac5962d58b850202c4c93f3ad0846366b8ae5 (diff)
Send policies in status
Change-Id: Ia1f02857922a81c5d94ffc33cee72ce9a822c876 Issue-ID: POLICY-1624 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'feature-lifecycle/src/main')
-rw-r--r--feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java b/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java
index 97f3574e..8e1e9937 100644
--- a/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java
+++ b/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java
@@ -335,8 +335,9 @@ public class LifecycleFsm implements Startable {
status.setPdpSubgroup(subgroup);
status.setState(state);
status.setHealthy(isAlive() ? PdpHealthStatus.HEALTHY : PdpHealthStatus.NOT_HEALTHY);
- status.setPdpType("drools"); // TODO: enum ?
+ status.setPdpType("drools");
status.setSupportedPolicyTypes(getCapabilities());
+ status.setPolicies(new ArrayList<>(policiesMap.keySet()));
return status;
}