incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vik...@apache.org
Subject svn commit: r1347258 - in /incubator/ambari/branches/ambari-186: CHANGES.txt hmc/js/addNodes.js
Date Thu, 07 Jun 2012 01:23:52 GMT
Author: vikram
Date: Thu Jun  7 01:23:51 2012
New Revision: 1347258

URL: http://svn.apache.org/viewvc?rev=1347258&view=rev
Log:
AMBARI-451. Add nodes has incorrect check on returned status (Contributed by Vikram)

Modified:
    incubator/ambari/branches/ambari-186/CHANGES.txt
    incubator/ambari/branches/ambari-186/hmc/js/addNodes.js

Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1347258&r1=1347257&r2=1347258&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Thu Jun  7 01:23:51 2012
@@ -6,6 +6,8 @@ characters wide.
 
 Release 0.1.x - unreleased
 
+  AMBARI-451. Add nodes has incorrect check on returned status (Vikram)
+
   AMBARI-450. Boldify/Redify restart HMC message when nagios/ganglia is on the hmc host (Yusaku
via Vikram)
 
   AMBARI-449. Post cluster install/deploy the URL hmc/html/initializeCluster.php should be
disabled (Yusaku via Vikram)

Modified: incubator/ambari/branches/ambari-186/hmc/js/addNodes.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/js/addNodes.js?rev=1347258&r1=1347257&r2=1347258&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/js/addNodes.js (original)
+++ incubator/ambari/branches/ambari-186/hmc/js/addNodes.js Thu Jun  7 01:23:51 2012
@@ -184,14 +184,14 @@ globalYui.one("#fileUploadTargetId").on(
 
       var responseJson = globalYui.JSON.parse(responseText);
 
-      if (responseJson.result != "0") {
+      if (responseJson.result != 0) {
         // This means we hit an error
 
-        if (responseJson.result == "2") {
+        if (responseJson.result == 2) {
           alert('Got error : ' + responseJson.error);
           hideLoadingImg();
           return;
-      } else if (responseJson.result == "3") {
+      } else if (responseJson.result == 3) {
         var confirmed = confirm(responseJson.error + "\n\n" + responseJson.hosts + "\n\nPlease
click OK if you want to ignore them and continue.");
         if (!confirmed) {
           hideLoadingImg();



Mime
View raw message