Explorar o código

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

Yusaku Sako %!s(int64=11) %!d(string=hai) anos
pai
achega
462c6432d4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 clusterName = this.get('clusterName');
     var url = App.apiPrefix + '/clusters/' + 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({
     this.ajax({
       type: 'POST',
       type: 'POST',