ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lpus...@apache.org
Subject [08/38] ambari git commit: AMBARI-21932. Some clients are being additionally installed via Add service wizard.(jaimin)
Date Thu, 14 Sep 2017 14:38:44 GMT
AMBARI-21932. Some clients are being additionally installed via Add service wizard.(jaimin)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9316ea85
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9316ea85
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9316ea85

Branch: refs/heads/feature-branch-AMBARI-21307
Commit: 9316ea858991552a13481f9d2dab3273e73565f2
Parents: aaf6f0a
Author: Jaimin Jetly <jaimin@hortonworks.com>
Authored: Tue Sep 12 11:00:25 2017 -0700
Committer: Jaimin Jetly <jaimin@hortonworks.com>
Committed: Tue Sep 12 11:02:12 2017 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/wizard/step8_controller.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/9316ea85/ambari-web/app/controllers/wizard/step8_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step8_controller.js b/ambari-web/app/controllers/wizard/step8_controller.js
index cc06b5b..b99c6e3 100644
--- a/ambari-web/app/controllers/wizard/step8_controller.js
+++ b/ambari-web/app/controllers/wizard/step8_controller.js
@@ -1333,7 +1333,8 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs,
App.wiz
           clientsToClientMap[_clientName].forEach(function (componentName) {
             clientHosts.forEach(function (_clientHost) {
               var host = this.get('content.hosts')[_clientHost.hostName];
-              if (host.isInstalled && !host.hostComponents.someProperty('HostRoles.component_name',
componentName)) {
+              var isClientSelected = clients.someProperty('component_name', componentName);
+              if (host.isInstalled && isClientSelected && !host.hostComponents.someProperty('HostRoles.component_name',
componentName)) {
                 hostNames.pushObject(_clientHost.hostName);
               }
             }, this);


Mime
View raw message