|
@@ -1021,8 +1021,8 @@ App.config = Em.Object.create({
|
|
OnNnHAHideSnn: function (ServiceConfig) {
|
|
OnNnHAHideSnn: function (ServiceConfig) {
|
|
var configCategories = ServiceConfig.get('configCategories');
|
|
var configCategories = ServiceConfig.get('configCategories');
|
|
var snCategory = configCategories.findProperty('name', 'SNameNode');
|
|
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);
|
|
configCategories.removeObject(snCategory);
|
|
}
|
|
}
|
|
},
|
|
},
|