aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorSébastien Determe <sd378r@intl.att.com>2018-05-15 15:21:04 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-15 15:21:04 +0000
commitb0cb4d108c3428ca6c6809c110dc430438bbfc24 (patch)
treecb9b85dba36bd648bd7e5a37744a95e757faa694 /src/main/java/org
parent488b11d7ee22de7ae6bc5269348dd24c50f49050 (diff)
parent1ea591c48231b26400cb20b77bd4a6069b75ffa8 (diff)
Merge "Fix the tca policy"
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/onap/clamp/clds/client/req/tca/TcaRequestFormatter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/onap/clamp/clds/client/req/tca/TcaRequestFormatter.java b/src/main/java/org/onap/clamp/clds/client/req/tca/TcaRequestFormatter.java
index 4a07ca3aa..35c438d9e 100644
--- a/src/main/java/org/onap/clamp/clds/client/req/tca/TcaRequestFormatter.java
+++ b/src/main/java/org/onap/clamp/clds/client/req/tca/TcaRequestFormatter.java
@@ -69,6 +69,8 @@ public class TcaRequestFormatter {
String service = modelProperties.getGlobal().getService();
Tca tca = modelProperties.getType(Tca.class);
modelProperties.setCurrentModelElementId(tca.getId());
+ // Always one tcaItem so must be set to id 0
+ modelProperties.setPolicyUniqueId("0");
ObjectNode rootNode = (ObjectNode) refProp.getJsonTemplate("tca.policy.template", service);
String policyName = modelProperties.getCurrentPolicyScopeAndPolicyName();
rootNode.put("policyName", policyName);