Prechádzať zdrojové kódy

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

Alex Antonenko 10 rokov pred
rodič
commit
10b76dc5a2

+ 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;
     });