diff options
author | Lusheng Ji <lji@research.att.com> | 2018-04-27 14:42:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-27 14:42:44 +0000 |
commit | 5e2c542eb04f345ed55583984530fb815f7b0bd3 (patch) | |
tree | 9bc71d6249ff1fd30324a896b250c860d5323575 /tca-cdap-container/restart.sh | |
parent | 829e71e4cbdba099df6ab7b4cf1297960539cdcb (diff) | |
parent | 57c97af529a7e392d13d470f1eecc1661fc3f819 (diff) |
Merge "fix typo on tca container startup"
Diffstat (limited to 'tca-cdap-container/restart.sh')
-rwxr-xr-x | tca-cdap-container/restart.sh | 2 |
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}" |