瀏覽代碼

AMBARI-1144. Cannot save changes to ZooKeeper configuration. (Arun Kandregula via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1431845 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 年之前
父節點
當前提交
884353a8e5
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 3 0
      CHANGES.txt
  2. 3 1
      ambari-web/app/controllers/main/service/info/configs.js

+ 3 - 0
CHANGES.txt

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

+ 3 - 1
ambari-web/app/controllers/main/service/info/configs.js

@@ -645,9 +645,11 @@ App.MainServiceInfoConfigsController = Em.Controller.extend({
               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 {