You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by GitBox <gi...@apache.org> on 2019/01/15 16:49:32 UTC
[ambari] Diff for: [GitHub] rlevas merged pull request #2743: AMBARI-25069 -
Ambari wrties Empty baseurl values written to Repo Files when using a local
repository causing stack installation failure
diff --git a/ambari-web/app/controllers/wizard/step1_controller.js b/ambari-web/app/controllers/wizard/step1_controller.js
index d731a43d9ba..489e4672c61 100644
--- a/ambari-web/app/controllers/wizard/step1_controller.js
+++ b/ambari-web/app/controllers/wizard/step1_controller.js
@@ -193,12 +193,14 @@ App.WizardStep1Controller = Em.Controller.extend({
*/
onNetworkIssuesExist: function() {
if (this.get('networkIssuesExist')) {
- this.get('content.stacks').forEach(function (stack) {
- stack.setProperties({
- usePublicRepo: false,
- useLocalRepo: true
- });
- stack.cleanReposBaseUrls();
+ this.get('content.stacks').forEach(function(stack) {
+ if (stack.get('useLocalRepo') !== true) {
+ stack.setProperties({
+ usePublicRepo: false,
+ useLocalRepo: true
+ });
+ stack.cleanReposBaseUrls();
+ }
});
}
}.observes('networkIssuesExist'),
With regards,
Apache Git Services