diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2019-05-03 13:57:11 -0400 |
---|---|---|
committer | Pamela Dragosh <pdragosh@research.att.com> | 2019-05-03 13:57:17 -0400 |
commit | 8039c0bae81eb34b397e389573aa83168aa350b5 (patch) | |
tree | e36149098a8f270ddc5dc37ccd2091f6aeec9a8d /models-interactions/model-simulators | |
parent | 40ced02a4e9d0ec2f4cc0845a37b2276e495c898 (diff) |
Decision should return dictionary
Should not be an array of policies, should be a
dictionary.
Issue-ID: POLICY-1735
Change-Id: Ia88ef65dd332933aafbe6b57693344d5d43c53b8
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'models-interactions/model-simulators')
-rw-r--r-- | models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java | 4 |
1 files changed, 2 insertions, 2 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 a2a06a4fb..25606eef1 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 @@ -56,13 +56,13 @@ public class GuardSimulatorJaxRs { response.setStatus("Deny"); response.setAdvice(Collections.emptyMap()); response.setObligations(Collections.emptyMap()); - response.setPolicies(Collections.emptyList()); + response.setPolicies(Collections.emptyMap()); return response; } else { response.setStatus("Permit"); response.setAdvice(Collections.emptyMap()); response.setObligations(Collections.emptyMap()); - response.setPolicies(Collections.emptyList()); + response.setPolicies(Collections.emptyMap()); return response; } } |