summaryrefslogtreecommitdiffstats
path: root/packages/base
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-07-25 09:54:28 -0500
committerJorge Hernandez <jh1730@att.com>2017-07-25 09:54:28 -0500
commit4d38fa9c091dac1247239411e731c520faeeec21 (patch)
treecf92ae321a1a1ede5c99ff25fa762dfea3e5551a /packages/base
parentb395d8251fffd36040d47c88b1346c5655d56a21 (diff)
[POLICY-66] policy.sh policy-management-controller
Explicit invokation of policy-management-controller in policy.sh since it loops through scripts picks up others it shouldn't when an operation is selected. Benign but not stetic. Change-Id: I140ca6b0501b3368e9eac0b3ddf947b59c74e426 Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'packages/base')
-rw-r--r--packages/base/src/files/bin/policy.sh17
1 files changed, 8 insertions, 9 deletions
diff --git a/packages/base/src/files/bin/policy.sh b/packages/base/src/files/bin/policy.sh
index 67f56caf..17ad2818 100644
--- a/packages/base/src/files/bin/policy.sh
+++ b/packages/base/src/files/bin/policy.sh
@@ -50,15 +50,14 @@ function policy_op() {
cd $POLICY_HOME
echo "[drools-pdp-controllers]"
- for binScript in bin/*-controller; do
- if check_x_file "${binScript}"; then
- trap "rm -f /tmp/out$$" EXIT
- ${binScript} ${operation} >/tmp/out$$
- echo " L [${controller}]: $(sed ':a;N;$!ba;s/\n/ /g' /tmp/out$$)"
- else
- echo " L [${controller}]: -"
- fi
- done
+ binScript="bin/policy-management-controller"
+ if check_x_file "${binScript}"; then
+ trap "rm -f /tmp/out$$" EXIT
+ ${binScript} ${operation} >/tmp/out$$
+ echo " L [${controller}]: $(sed ':a;N;$!ba;s/\n/ /g' /tmp/out$$)"
+ else
+ echo " L [${controller}]: -"
+ fi
}
function policy_status() {