Fix fieldname for guard 49/89849/2
authorPamela Dragosh <pdragosh@research.att.com>
Fri, 14 Jun 2019 00:05:00 +0000 (20:05 -0400)
committerPamela Dragosh <pdragosh@research.att.com>
Fri, 14 Jun 2019 02:52:48 +0000 (22:52 -0400)
Should be clname

Issue-ID: POLICY-1855
Change-Id: I17d59f33e761386bad9a30a07ec505ac66c6215a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
(cherry picked from commit 5eaecb6bb0c0cfca4cf48f23b3b6b32dc8213d0b)
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java

index fc9a243..53f1cea 100644 (file)
@@ -76,7 +76,7 @@ public class PolicyGuardXacmlHelper {
         guard.put("recipe", xacmlReq.getOperationId());
         guard.put("target", xacmlReq.getTargetId());
         if (xacmlReq.getClnameId() != null) {
-            guard.put("clName", xacmlReq.getClnameId());
+            guard.put("clname", xacmlReq.getClnameId());
         }
         if (xacmlReq.getVfCount() != null) {
             guard.put("vfCount", Integer.toString(xacmlReq.getVfCount()));