Author: yusaku
Date: Fri Jan 11 03:08:21 2013
New Revision: 1431845

URL: http://svn.apache.org/viewvc?rev=1431845&view=rev
Log:
AMBARI-1144. Cannot save changes to ZooKeeper configuration. (Arun Kandregula 
via yusaku)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    
incubator/ambari/trunk/ambari-web/app/controllers/main/service/info/configs.js

Modified: incubator/ambari/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1431845&r1=1431844&r2=1431845&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Jan 11 03:08:21 2013
@@ -690,6 +690,9 @@ AMBARI-666 branch (unreleased changes)
 
   BUG FIXES
 
+  AMBARI-1144. Cannot save changes to ZooKeeper configuration.
+  (Arun Kandregula via yusaku)
+
   AMBARI-1155. Change "Save and apply changes" button on configs section to
   "Save". (yusaku)
 

Modified: 
incubator/ambari/trunk/ambari-web/app/controllers/main/service/info/configs.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/service/info/configs.js?rev=1431845&r1=1431844&r2=1431845&view=diff
==============================================================================
--- 
incubator/ambari/trunk/ambari-web/app/controllers/main/service/info/configs.js 
(original)
+++ 
incubator/ambari/trunk/ambari-web/app/controllers/main/service/info/configs.js 
Fri Jan 11 03:08:21 2013
@@ -645,9 +645,11 @@ App.MainServiceInfoConfigsController = E
               globValue = temp;
             }
             if (name === "templeton.zookeeper.hosts") {
+              var temp = [];
               globValue.forEach(function (_host, index) {
-                globValue[index] = globValue[index] + ':' + zooKeeperPort;
+                temp.push(globValue[index] + ':' + zooKeeperPort);
               }, this);
+              globValue = temp;
             }
             value = value.replace(_express, globValue.toString());
           } else {


Reply via email to