summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-04-27 14:42:44 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-27 14:42:44 +0000
commit5e2c542eb04f345ed55583984530fb815f7b0bd3 (patch)
tree9bc71d6249ff1fd30324a896b250c860d5323575
parent829e71e4cbdba099df6ab7b4cf1297960539cdcb (diff)
parent57c97af529a7e392d13d470f1eecc1661fc3f819 (diff)
Merge "fix typo on tca container startup"
-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}"