incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vik...@apache.org
Subject svn commit: r1347171 - in /incubator/ambari/branches/ambari-186: CHANGES.txt hmc/js/assignMasters.js
Date Wed, 06 Jun 2012 22:15:23 GMT
Author: vikram
Date: Wed Jun  6 22:15:22 2012
New Revision: 1347171

URL: http://svn.apache.org/viewvc?rev=1347171&view=rev
Log:
AMBARI-396. Add nodes fails in assign masters because of closure issues (Contributed by Vikram)

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

Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1347171&r1=1347170&r2=1347171&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Wed Jun  6 22:15:22 2012
@@ -6,6 +6,8 @@ characters wide.
 
 Release 0.1.x - unreleased
 
+  AMBARI-396. Add nodes fails in assign masters because of closure issues (Vikram)
+
   AMBARI-395. Ganglia server should not run gmond. (Mahadev via Vikram)
 
   AMBARI-394. Add nodes fails to find node in db (Vikram)

Modified: incubator/ambari/branches/ambari-186/hmc/js/assignMasters.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/js/assignMasters.js?rev=1347171&r1=1347170&r2=1347171&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/js/assignMasters.js (original)
+++ incubator/ambari/branches/ambari-186/hmc/js/assignMasters.js Wed Jun  6 22:15:22 2012
@@ -89,10 +89,14 @@ function getMasterHostSelect(masterName,
 	return markup;
 }
 
+var globalClusterName = '';
+
 function renderAssignHosts(clusterInfo) {
 
   hideLoadingImg();
+  globalYui.log("Render assign hosts data " + globalYui.Lang.dump(clusterInfo));
   globalYui.one('#assignHostsCoreDivId').setStyle("display", "block");
+  globalClusterName = clusterInfo.clusterName;
 
   if( !registeredAssignHostsEventHandlers ) {
 
@@ -116,7 +120,7 @@ function renderAssignHosts(clusterInfo) 
         // globalYui.log("Assignment for " + masterName + " is " + assignHostsRequestData[masterName]);
       };
 
-      globalYui.io("../php/frontend/assignMasters.php?clusterName="+clusterInfo.clusterName,
{
+      globalYui.io("../php/frontend/assignMasters.php?clusterName="+globalClusterName, {
 
         method: 'POST',
         data: globalYui.JSON.stringify(assignHostsRequestData),



Mime
View raw message