ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject ambari git commit: AMBARI-13892. SLAVE component with cardinality 0+ gets auto-selected during Add Service
Date Thu, 19 Nov 2015 18:27:49 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 71fa55fa5 -> 75e6e84cb


AMBARI-13892. SLAVE component with cardinality 0+ gets auto-selected during Add Service


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

Branch: refs/heads/branch-2.1
Commit: 75e6e84cb0f9c5ddd2bb3cb4ac64ccc02a0c0c74
Parents: 71fa55f
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Thu Nov 19 20:19:06 2015 +0200
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Thu Nov 19 20:27:45 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service/add_controller.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/75e6e84c/ambari-web/app/controllers/main/service/add_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/add_controller.js b/ambari-web/app/controllers/main/service/add_controller.js
index e7be889..1f3f5bc 100644
--- a/ambari-web/app/controllers/main/service/add_controller.js
+++ b/ambari-web/app/controllers/main/service/add_controller.js
@@ -409,7 +409,7 @@ App.AddServiceController = App.WizardController.extend(App.AddSecurityConfigs,
{
       result.push({
         componentName: component.get('componentName'),
         displayName: App.format.role(component.get('componentName')),
-        hosts: uninstalledComponentHosts,
+        hosts: component.get('minToInstall') != 0 ? uninstalledComponentHosts : [],
         isInstalled: false
       })
     });
@@ -419,9 +419,8 @@ App.AddServiceController = App.WizardController.extend(App.AddSecurityConfigs,
{
 
   /**
    * Generate clients list for selected services and save it to model
-   * @param stepController step4WizardController
    */
-  saveClients: function (stepController) {
+  saveClients: function () {
     var clients = [];
     var serviceComponents = App.StackServiceComponent.find();
     this.get('content.services').filterProperty('isSelected').filterProperty('isInstalled',false).forEach(function
(_service) {


Mime
View raw message