summaryrefslogtreecommitdiffstats
path: root/tca-cdap-container
diff options
context:
space:
mode:
authorvagrant <vv770d@att.com>2018-04-26 13:20:47 +0000
committervagrant <vv770d@att.com>2018-04-26 13:20:58 +0000
commit1b28daf7cbbf3f3bbd3b07755de14c36251d3338 (patch)
tree4528a53b3e80332ebeec54a02d7023b1d53b8932 /tca-cdap-container
parentdc9948f01ed106df324c25fbfd680ca7c59bc75e (diff)
fix restart script policy fetch logic
Change-Id: I8ebf079a9a1c5e064fdbae216663fb050e9fd71e Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com> Issue-ID: DCAEGEN2-464
Diffstat (limited to 'tca-cdap-container')
-rwxr-xr-xtca-cdap-container/restart.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tca-cdap-container/restart.sh b/tca-cdap-container/restart.sh
index d9e53b3..589b29d 100755
--- a/tca-cdap-container/restart.sh
+++ b/tca-cdap-container/restart.sh
@@ -184,7 +184,7 @@ function tca_poll_policy {
CONFIG=$(echo $HTTP_BODY | jq .config.app_config)
PREF=$(echo $HTTP_BODY | jq .config.app_preferences)
POLICY=$(echo $HTTP_BODY | jq .policies.items[0].config.content)
- NEWPREF=$(echo $PREF | jq --arg tca_policy "$POLICY" '. + {tca_policy: $tca_policy}')
+ NEWPREF=$(echo $PREF | jq --arg tca_policy "$POLICY" '. + {$tca_policy}')
NEWPREF=$(echo $NEWPREF | sed 's/\\n//g')
echo $CONFIG | jq . --sort-keys > "${TCA_CONF_TEMP}"
echo $NEWPREF | jq . --sort-keys > "${TCA_PREF_TEMP}"