Repository: ambari
Updated Branches:
  refs/heads/trunk c3fb15c93 -> b4a117980


AMBARI-5217. Incorrect Stale Config indicator shown for HDFS, YARN and MR2 
service after adding Zookeeper server to a host. (jaimin)


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

Branch: refs/heads/trunk
Commit: b4a1179802498cc5e4ae0be17caa114abae29bac
Parents: c3fb15c
Author: Jaimin Jetly <[email protected]>
Authored: Wed Mar 26 10:46:44 2014 -0700
Committer: Jaimin Jetly <[email protected]>
Committed: Wed Mar 26 10:46:57 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/main/host/details.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b4a11798/ambari-web/app/controllers/main/host/details.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/host/details.js 
b/ambari-web/app/controllers/main/host/details.js
index 95ac8e2..9ac2690 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -531,7 +531,9 @@ App.MainHostDetailsController = Em.Controller.extend({
    */
   loadConfigsSuccessCallback: function(data) {
     var urlParams = [];
-    urlParams.push('(type=core-site&tag=' + 
data.Clusters.desired_configs['core-site'].tag + ')');
+    if (App.get('isHaEnabled')) {
+      urlParams.push('(type=core-site&tag=' + 
data.Clusters.desired_configs['core-site'].tag + ')');
+    }
     if (App.Service.find().someProperty('serviceName', 'HBASE')) {
       urlParams.push('(type=hbase-site&tag=' + 
data.Clusters.desired_configs['hbase-site'].tag + ')');
     }
@@ -541,6 +543,9 @@ App.MainHostDetailsController = Em.Controller.extend({
     if (App.Service.find().someProperty('serviceName', 'STORM')) {
       urlParams.push('(type=storm-site&tag=' + 
data.Clusters.desired_configs['storm-site'].tag + ')');
     }
+    if (!urlParams.length) {
+      return;
+    }
     App.ajax.send({
       name: 'reassign.load_configs',
       sender: this,

Reply via email to