Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
AMBARI-25069 - Ambari wrties Empty baseurl values written to Repo Fil…
…es when using a local repository causing stack installation failure (#2743)

* AMBARI-25069 - Ambari wrties Empty baseurl values written to Repo Files when using a local repository causing stack installation failure

* AMBARI-25069 - Ambari wrties Empty baseurl values written to Repo Files when using a local repository causing stack installation failure (asnaik)
  • Loading branch information
Akhilsnaik authored and rlevas committed Jan 15, 2019
1 parent 0fdfa1a commit 818b21f211bfc27f5152749f2e445c63de98c78f
Showing 1 changed file with 8 additions and 6 deletions.
@@ -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'),

0 comments on commit 818b21f

Please sign in to comment.