You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2014/04/06 02:10:53 UTC
git commit: AMBARI-5365. Cluster deployment fails depending on the
stack selected. (yusaku)
Repository: ambari
Updated Branches:
refs/heads/branch-1.5.1 494d64729 -> df4fd469c
AMBARI-5365. Cluster deployment fails depending on the stack selected. (yusaku)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/df4fd469
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/df4fd469
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/df4fd469
Branch: refs/heads/branch-1.5.1
Commit: df4fd469cd3b1b3c97407fb5a10e67df1c51dd7f
Parents: 494d647
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Sat Apr 5 16:40:12 2014 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Sat Apr 5 17:10:24 2014 -0700
----------------------------------------------------------------------
.../app/controllers/wizard/step8_controller.js | 29 ++++++++++----------
1 file changed, 14 insertions(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/df4fd469/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 2111c94..609037a 100644
--- a/ambari-web/app/controllers/wizard/step8_controller.js
+++ b/ambari-web/app/controllers/wizard/step8_controller.js
@@ -843,21 +843,20 @@ App.WizardStep8Controller = Em.Controller.extend({
if (this.get('content.controllerName') !== 'installerController' || !App.supports.localRepositories) return;
var self = this;
- this.get('content.stacks').forEach(function (stack) {
- stack.operatingSystems.forEach(function (os) {
- if (os.baseUrl !== os.originalBaseUrl) {
- console.log("Updating local repository URL from " + os.originalBaseUrl + " -> " + os.baseUrl + ". ", os);
- self.addRequestToAjaxQueue({
- type: 'PUT',
- url: App.apiPrefix + App.get('stack2VersionURL') + "/operatingSystems/" + os.osType + "/repositories/" + stack.name,
- data: JSON.stringify({
- "Repositories": {
- "base_url": os.baseUrl
- }
- })
- });
- }
- });
+ var stack = this.get('content.stacks').findProperty('isSelected', true);
+ stack.operatingSystems.forEach(function (os) {
+ if (os.baseUrl !== os.originalBaseUrl) {
+ console.log("Updating local repository URL from " + os.originalBaseUrl + " -> " + os.baseUrl + ". ", os);
+ self.addRequestToAjaxQueue({
+ type: 'PUT',
+ url: App.apiPrefix + App.get('stack2VersionURL') + "/operatingSystems/" + os.osType + "/repositories/" + stack.name,
+ data: JSON.stringify({
+ "Repositories": {
+ "base_url": os.baseUrl
+ }
+ })
+ });
+ }
});
},