Browse Source

AMBARI-3048. "Use local repo" always installs the default stack version regardless of stack selected by the user. (alexantonenko via yusaku)

Yusaku Sako 11 years ago
parent
commit
462c6432d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ambari-web/app/controllers/wizard/step8_controller.js

+ 1 - 1
ambari-web/app/controllers/wizard/step8_controller.js

@@ -1024,7 +1024,7 @@ App.WizardStep8Controller = Em.Controller.extend({
     var clusterName = this.get('clusterName');
     var url = App.apiPrefix + '/clusters/' + clusterName;
 
-    var stackVersion = (this.get('content.installOptions.localRepo')) ? App.defaultLocalStackVersion : App.currentStackVersion;
+    var stackVersion = (this.get('content.installOptions.localRepo')) ? App.currentStackVersion.replace(/(-\d+(\.\d)*)/ig, "Local$&") : App.currentStackVersion;
 
     this.ajax({
       type: 'POST',