Updated Branches: refs/heads/trunk 43283406c -> 462c6432d
AMBARI-3048. "Use local repo" always installs the default stack version regardless of stack selected by the user. (alexantonenko via yusaku) Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/462c6432 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/462c6432 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/462c6432 Branch: refs/heads/trunk Commit: 462c6432d42f9bb13bd847c5a01663e6c5205683 Parents: 4328340 Author: Yusaku Sako <[email protected]> Authored: Thu Aug 29 18:36:47 2013 +0300 Committer: Yusaku Sako <[email protected]> Committed: Thu Aug 29 18:36:47 2013 +0300 ---------------------------------------------------------------------- ambari-web/app/controllers/wizard/step8_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/462c6432/ambari-web/app/controllers/wizard/step8_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step8_controller.js b/ambari-web/app/controllers/wizard/step8_controller.js index 38128ac..009d2d6 100644 --- a/ambari-web/app/controllers/wizard/step8_controller.js +++ b/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',
