You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2013/12/09 21:03:56 UTC

git commit: AMBARI-4022. Config upgrade helper is not working (mahadev).

Updated Branches:
  refs/heads/trunk 3b44151aa -> 4b39ed873


AMBARI-4022. Config upgrade helper is not working (mahadev).


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4b39ed87
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4b39ed87
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4b39ed87

Branch: refs/heads/trunk
Commit: 4b39ed873cf2d38b39ee3aad7e66272edaecbe99
Parents: 3b44151
Author: Mahadev Konar <ma...@apache.org>
Authored: Mon Dec 9 11:59:43 2013 -0800
Committer: Mahadev Konar <ma...@apache.org>
Committed: Mon Dec 9 12:02:37 2013 -0800

----------------------------------------------------------------------
 ambari-server/src/main/resources/scripts/configs.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4b39ed87/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 9ac2d92..401c5f9 100755
--- a/ambari-server/src/main/resources/scripts/configs.sh
+++ b/ambari-server/src/main/resources/scripts/configs.sh
@@ -136,7 +136,7 @@ doConfigUpdate () {
         newFile="doSet_$newTag.json"
         echo "########## PUTting json into: $newFile"
         echo $finalJson > $newFile
-        curl -u $USERID:$PASSWD -X PUT "$AMBARIURL/api/v1/clusters/$CLUSTER" --data @$newFile
+        curl -u $USERID:$PASSWD -X PUT -H "X-Requested-By: ambari" "$AMBARIURL/api/v1/clusters/$CLUSTER" --data @$newFile
         currentSiteTag
         echo "########## NEW Site:$SITE, Tag:$SITETAG";
       elif [ "`echo $line | grep "\"$CONFIGKEY\""`" ]; then
@@ -163,7 +163,7 @@ doConfigFileUpdate () {
       newFile="PUT_$FILENAME"
       echo $finalJson>$newFile
       echo "########## PUTting file:\"$FILENAME\" into config(type:\"$SITE\", tag:$newTag) via $newFile"
-      curl -u $USERID:$PASSWD -X PUT "$AMBARIURL/api/v1/clusters/$CLUSTER" --data @$newFile
+      curl -u $USERID:$PASSWD -X PUT -H "X-Requested-By: ambari" "$AMBARIURL/api/v1/clusters/$CLUSTER" --data @$newFile
       currentSiteTag
       echo "########## NEW Site:$SITE, Tag:$SITETAG";
     else