aboutsummaryrefslogtreecommitdiffstats
path: root/models-interactions/model-simulators/src/main
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2019-06-13 19:44:56 -0400
committerPamela Dragosh <pdragosh@research.att.com>2019-06-14 02:37:46 +0000
commitdcea324a27a4597d486511771d0884a833b0a7be (patch)
treeb33ab3bacee70c4c3ffa84d8105bdedbea2e15b9 /models-interactions/model-simulators/src/main
parent2d69f0ed6b0a59bacd4e7986c23281e4a9006c93 (diff)
Fix fieldname for guard
The correct name is 'clname'. Issue-ID: POLICY-1855 Change-Id: I27314576bb84615ccf225f0b57bfd710e2015e60 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com> (cherry picked from commit f2b9a074416f814f8b4c071296a0abaf373db1b9)
Diffstat (limited to 'models-interactions/model-simulators/src/main')
-rw-r--r--models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java
index 25606eef1..46b66b06a 100644
--- a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java
+++ b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java
@@ -50,7 +50,7 @@ public class GuardSimulatorJaxRs {
public DecisionResponse getGuardDecision(DecisionRequest req) {
@SuppressWarnings("unchecked")
Map<String, String> guard = (Map<String, String>) req.getResource().get("guard");
- String clName = guard.get("clName");
+ String clName = guard.get("clname");
DecisionResponse response = new DecisionResponse();
if (DENY_CLNAME.equals(clName)) {
response.setStatus("Deny");