diff options
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 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}" |