This is an automated email from the ASF dual-hosted git repository.

jgolieb pushed a commit to branch branch-feature-AMBARI-14714-mpack-advisor
in repository https://gitbox.apache.org/repos/asf/ambari.git

commit 3a1c689b5c47a92c0b6f90b42aa353048d9b4904
Author: Andrii Tkach <[email protected]>
AuthorDate: Thu May 31 17:31:29 2018 +0300

    AMBARI-23999 Remove hardcoded logic in UI to create HDPCORE service group 
and create multiple service groups
---
 ambari-web/app/controllers/wizard/step8_controller.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ambari-web/app/controllers/wizard/step8_controller.js 
b/ambari-web/app/controllers/wizard/step8_controller.js
index 80a352c..90c3a3b 100644
--- a/ambari-web/app/controllers/wizard/step8_controller.js
+++ b/ambari-web/app/controllers/wizard/step8_controller.js
@@ -162,9 +162,8 @@ App.WizardStep8Controller = 
App.WizardStepController.extend(App.AddSecurityConfi
   }.property(),
 
   getSelectedStack: function() {
-    const selectedStack = this.get('content.selectedStack');
-    const stack = this.get('wizardController').getStack(selectedStack.name, 
selectedStack.version);
-    return stack;    
+    //TODO Remove when cluster don't need stack version, until use version of 
any mpack
+    return App.Stack.find().objectAt(0);
   },
 
   installedServices: function() {
@@ -926,7 +925,7 @@ App.WizardStep8Controller = 
App.WizardStepController.extend(App.AddSecurityConfi
    */
   createCluster: function () {
     if (!this.get('isInstaller')) return;
-    const selectedStack = this.getSelectedStack()
+    const selectedStack = this.getSelectedStack();
     this.addRequestToAjaxQueue({
       name: 'wizard.step8.create_cluster',
       data: {
@@ -972,6 +971,7 @@ App.WizardStep8Controller = 
App.WizardStepController.extend(App.AddSecurityConfi
       const serviceGroups = mpacks.map(mpack => ({
           "ServiceGroupInfo": {
             "service_group_name": mpack.name,
+            "version": mpack.id
           }
         })
       );

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to