aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2018-10-16 17:51:22 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-16 17:51:22 +0000
commitdcbc974aad61afb91e30feadcb3a1cb72520dae2 (patch)
tree6a1b3c403e7a89301d20a57de090722cf5773577 /plugins
parent26aca30d09dd4552adf2b61c6bd18ddc681e2a87 (diff)
parent4978409efc08380c61efd7bf1e3822897d9b51fa (diff)
Merge "Fix NullPointerException of PolicyScope field"
Diffstat (limited to 'plugins')
-rw-r--r--plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/pdpx/PolicyDecoderCsarPdpx.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/pdpx/PolicyDecoderCsarPdpx.java b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/pdpx/PolicyDecoderCsarPdpx.java
index 030c470b..97ca3f5e 100644
--- a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/pdpx/PolicyDecoderCsarPdpx.java
+++ b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/pdpx/PolicyDecoderCsarPdpx.java
@@ -69,6 +69,7 @@ public class PolicyDecoderCsarPdpx implements PolicyDecoder<Csar, OptimizationPo
configBody.setRiskLevel(decoderParameters.getRiskLevel());
configBody.setRiskType(decoderParameters.getRiskType());
configBody.setGuard("false");
+ content.getPolicyScope().add("HPA");
configBody.setContent(content);
policy.setConfigBody(gson.toJson(configBody));
policys.add(policy);