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:28:53 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 58f5b6789 -> 4a83215b5


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/4a83215b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4a83215b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4a83215b

Branch: refs/heads/trunk
Commit: 4a83215b58226454b29df4409e1fb4f536949bfa
Parents: 58f5b67
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:28:49 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/4a83215b/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 2a12bc2..6fe3ff6 100644
--- a/ambari-web/app/controllers/main/service/add_controller.js
+++ b/ambari-web/app/controllers/main/service/add_controller.js
@@ -411,7 +411,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
       })
     });
@@ -421,9 +421,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