summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvagrant <vv770d@att.com>2018-04-26 18:18:14 +0000
committervagrant <vv770d@att.com>2018-04-26 18:18:22 +0000
commit57c97af529a7e392d13d470f1eecc1661fc3f819 (patch)
treede9bbc8cc36ad5d8bc2899a4e23fd43b0abd4a46
parent1b28daf7cbbf3f3bbd3b07755de14c36251d3338 (diff)
fix typo on tca container startup
Change-Id: I3e4fa5551f4cc25ceed094234d152df8dfcc8b9b Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com> Issue-ID: DCAEGEN2-464
-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 589b29d..a73ea8c 100755
--- a/tca-cdap-container/restart.sh
+++ b/tca-cdap-container/restart.sh
@@ -183,7 +183,7 @@ function tca_poll_policy {
else
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)
+ POLICY=$(echo $HTTP_BODY | jq .policies.items[0].config.content.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}"