diff options
author | Jorge Hernandez <jh1730@att.com> | 2017-09-21 17:49:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-21 17:49:29 +0000 |
commit | f5431672cc07c00f3d4e0a8a0a28d3edffb7d37e (patch) | |
tree | ffb53c5a396aad9399f007fcb854e6c2993772bf /controlloop/templates/template.demo/src/main/resources | |
parent | 1c48a72e93e79f270089bdbe5b0b9f733539ab23 (diff) | |
parent | fa9ed5f98a4eed3d82a440b719dd1db184260e94 (diff) |
Merge "Implement restful call to xacml pdp guard"
Diffstat (limited to 'controlloop/templates/template.demo/src/main/resources')
-rw-r--r-- | controlloop/templates/template.demo/src/main/resources/ControlLoop_Template_xacml_guard.drl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/controlloop/templates/template.demo/src/main/resources/ControlLoop_Template_xacml_guard.drl b/controlloop/templates/template.demo/src/main/resources/ControlLoop_Template_xacml_guard.drl index 82899f08b..ff184b385 100644 --- a/controlloop/templates/template.demo/src/main/resources/ControlLoop_Template_xacml_guard.drl +++ b/controlloop/templates/template.demo/src/main/resources/ControlLoop_Template_xacml_guard.drl @@ -589,7 +589,6 @@ rule "${policyName}.EVENT.MANAGER.OPERATION.LOCKED.GUARD_NOT_YET_QUERIED" if(guardEnabled){ Thread t = new Thread(new org.onap.policy.guard.CallGuardTask( - XacmlPdpEngine, "", drools.getWorkingMemory(), $event.closedLoopControlName, @@ -636,7 +635,7 @@ rule "${policyName}.GUARD.RESPONSE" //we will permit the operation if there was no Guard for it - if($guardResponse.result == "Indeterminate"){ + if("Indeterminate".equals($guardResponse.result)){ $guardResponse.result = "Permit"; } @@ -655,7 +654,7 @@ rule "${policyName}.GUARD.RESPONSE" - if($guardResponse.result == "Permit"){ + if("Permit".equals($guardResponse.result)){ modify($operation){setGuardApprovalStatus($guardResponse.result)}; } |