You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2014/01/29 23:06:37 UTC
git commit: AMBARI-4464. Panel "Secondary NameNode" exists on HDFS
Config Tab after HA enabled. (jaimin)
Updated Branches:
refs/heads/branch-1.4.4 84c9a6baf -> c41305586
AMBARI-4464. Panel "Secondary NameNode" exists on HDFS Config Tab after HA enabled. (jaimin)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c4130558
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c4130558
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c4130558
Branch: refs/heads/branch-1.4.4
Commit: c4130558628f3a78a415e1d2b9afed645b360713
Parents: 84c9a6b
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Wed Jan 29 14:05:48 2014 -0800
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Wed Jan 29 14:05:48 2014 -0800
----------------------------------------------------------------------
ambari-web/app/utils/config.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/c4130558/ambari-web/app/utils/config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/config.js b/ambari-web/app/utils/config.js
index e398360..8641acb 100644
--- a/ambari-web/app/utils/config.js
+++ b/ambari-web/app/utils/config.js
@@ -986,8 +986,8 @@ App.config = Em.Object.create({
OnNnHAHideSnn: function (ServiceConfig) {
var configCategories = ServiceConfig.get('configCategories');
var snCategory = configCategories.findProperty('name', 'SNameNode');
- var activeNn = App.HDFSService.find('HDFS').get('activeNameNode.hostName');
- if (snCategory && activeNn) {
+ var isSnnPresent = !!App.HDFSService.find('HDFS').get('snameNode');
+ if (snCategory && !isSnnPresent) {
configCategories.removeObject(snCategory);
}
},