You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2014/02/14 16:23:55 UTC

git commit: AMBARI-4677 Added property to zoo.cfg for ZooKeeper service disappears after clicking on the "Save" button. (atkach)

Updated Branches:
  refs/heads/trunk c3ecfc086 -> d3ddf51c8


AMBARI-4677 Added property to zoo.cfg for ZooKeeper service disappears after clicking on the "Save" button. (atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d3ddf51c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d3ddf51c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d3ddf51c

Branch: refs/heads/trunk
Commit: d3ddf51c834fe99a6dd1de721b832c3612b5918c
Parents: c3ecfc0
Author: atkach <at...@hortonworks.com>
Authored: Fri Feb 14 17:22:04 2014 +0200
Committer: atkach <at...@hortonworks.com>
Committed: Fri Feb 14 17:22:04 2014 +0200

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service/info/configs.js | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d3ddf51c/ambari-web/app/controllers/main/service/info/configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/info/configs.js b/ambari-web/app/controllers/main/service/info/configs.js
index c3bb2b6..3fede70 100644
--- a/ambari-web/app/controllers/main/service/info/configs.js
+++ b/ambari-web/app/controllers/main/service/info/configs.js
@@ -293,11 +293,13 @@ App.MainServiceInfoConfigsController = Em.Controller.extend({
     var defaultConfigGroupHosts = App.Host.find().mapProperty('hostName');
     var selectedConfigGroup;
     var siteToTagMap = {};
-    for (var site in data.Clusters.desired_configs) {
-      if (serviceConfigsDef.sites.indexOf(site) > -1) {
-        siteToTagMap[site] = data.Clusters.desired_configs[site].tag;
+    serviceConfigsDef.sites.forEach(function(siteName){
+      if(data.Clusters.desired_configs[siteName]){
+        siteToTagMap[siteName] = data.Clusters.desired_configs[siteName].tag;
+      } else {
+        siteToTagMap[siteName] = 'version1';
       }
-    }
+    }, this);
     this.loadedClusterSiteToTagMap = siteToTagMap;
     //parse loaded config groups
     if (App.supports.hostOverrides) {