Repository: ambari Updated Branches: refs/heads/trunk cb030a4e5 -> fc37b7376
AMBARI-15754. Retain the deprecation warning from 2.5.0 (Asger Askov Blekinge via smohanty) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/fc37b737 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/fc37b737 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/fc37b737 Branch: refs/heads/trunk Commit: fc37b7376bc65de3aec93accd0a57cf7807ef98f Parents: cb030a4 Author: Sumit Mohanty <[email protected]> Authored: Thu Feb 23 14:00:17 2017 -0800 Committer: Sumit Mohanty <[email protected]> Committed: Thu Feb 23 14:00:17 2017 -0800 ---------------------------------------------------------------------- ambari-server/src/main/resources/scripts/configs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/fc37b737/ambari-server/src/main/resources/scripts/configs.sh ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/scripts/configs.sh b/ambari-server/src/main/resources/scripts/configs.sh index eeb53c5..7364d0e 100755 --- a/ambari-server/src/main/resources/scripts/configs.sh +++ b/ambari-server/src/main/resources/scripts/configs.sh @@ -19,6 +19,9 @@ # usage () { + echo ""; + echo "WARNING: THIS SCRIPT IS DEPRECATED AND DOESN'T SUPPORT NEW FEATURES. PLEASE USE configs.py" + echo ""; echo "Usage: configs.sh [-u userId] [-p password] [-port port] [-s] <ACTION> <AMBARI_HOST> <CLUSTER_NAME> <CONFIG_TYPE> [CONFIG_FILENAME | CONFIG_KEY [CONFIG_VALUE]]"; echo ""; echo " [-u userId]: Optional user ID to use for authentication. Default is 'admin'."; @@ -167,7 +170,7 @@ doConfigUpdate () { newTag="version${newTag}" finalJson="{ \"Clusters\": { \"desired_config\": {\"type\": \"$SITE\", \"tag\":\"$newTag\", $newProperties}}}" newFile="doSet_$newTag.json" - echo "########## Putting json into: $newFile" + echo "########## PUTting json into: $newFile" echo "$finalJson" > $newFile curl -k -u $USERID:$PASSWD -X PUT -H "X-Requested-By: ambari" "$AMBARIURL/api/v1/clusters/$CLUSTER" --data @$newFile currentSiteTag
