Browse Source

AMBARI-396. Add nodes fails in assign masters because of closure issues (Contributed by Vikram)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/ambari-186@1347171 13f79535-47bb-0310-9956-ffa450edef68
Vikram Dixit K 13 years ago
parent
commit
c34f8d3893
2 changed files with 7 additions and 1 deletions
  1. 2 0
      CHANGES.txt
  2. 5 1
      hmc/js/assignMasters.js

+ 2 - 0
CHANGES.txt

@@ -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)

+ 5 - 1
hmc/js/assignMasters.js

@@ -89,10 +89,14 @@ function getMasterHostSelect(masterName, allHosts, chosenHostName) {
 	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),