Browse Source

AMBARI-1059. Refactor cluster management. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/AMBARI-666@1418967 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 years ago
parent
commit
fec2e11885
1 changed files with 6 additions and 5 deletions
  1. 6 5
      ambari-web/app/controllers/wizard/step8_controller.js

+ 6 - 5
ambari-web/app/controllers/wizard/step8_controller.js

@@ -792,12 +792,13 @@ App.WizardStep8Controller = Em.Controller.extend({
       }
     }, this);
 
-    // add Ganglia Monitor (Slave) to all hosts
-    for (var hostName in allHosts) {
-      // TODO: filter for only confirmed hosts?
-      this.createHostComponent({ hostName: hostName, component: 'GANGLIA_MONITOR'});
+    // add Ganglia Monitor (Slave) to all hosts if Ganglia is selected
+    if (this.get('selectedServices').someProperty('serviceName', 'GANGLIA')) {
+      for (var hostName in allHosts) {
+        // TODO: filter for only confirmed hosts?
+        this.createHostComponent({ hostName: hostName, component: 'GANGLIA_MONITOR'});
+      }
     }
-
   },
 
   createHostComponent: function (hostComponent) {