Browse Source

AMBARI-9218. Stack page has Ganglia even on 2.2 cluster (alexantonenko)

Alex Antonenko 10 years ago
parent
commit
10b76dc5a2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ambari-web/app/views/main/admin/stack_upgrade/services_view.js

+ 2 - 1
ambari-web/app/views/main/admin/stack_upgrade/services_view.js

@@ -26,7 +26,8 @@ App.MainAdminStackServicesView = Em.View.extend({
    * @type {Array}
    */
   services: function() {
-    return App.StackService.find().map(function(s) {
+    var services = App.supports.installGanglia ? App.StackService.find() : App.StackService.find().without(App.StackService.find('GANGLIA'));
+    return services.map(function(s) {
       s.set('isInstalled', App.Service.find().someProperty('serviceName', s.get('serviceName')));
       return s;
     });