ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject git commit: AMBARI-4677 Added property to zoo.cfg for ZooKeeper service disappears after clicking on the "Save" button. (atkach)
Date Fri, 14 Feb 2014 15:23:55 GMT
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 <atkach@hortonworks.com>
Authored: Fri Feb 14 17:22:04 2014 +0200
Committer: atkach <atkach@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) {


Mime
View raw message