ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject git commit: AMBARI-4022. Config upgrade helper is not working (mahadev).
Date Mon, 09 Dec 2013 20:04:32 GMT
Updated Branches:
  refs/heads/branch-1.4.2 294d3c1d5 -> c77651ec4


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/c77651ec
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c77651ec
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c77651ec

Branch: refs/heads/branch-1.4.2
Commit: c77651ec48099b1ce259d6975bf87f400cebde81
Parents: 294d3c1
Author: Mahadev Konar <mahadev@apache.org>
Authored: Mon Dec 9 11:59:43 2013 -0800
Committer: Mahadev Konar <mahadev@apache.org>
Committed: Mon Dec 9 12:04:23 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/c77651ec/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


Mime
View raw message