This is an automated email from the ASF dual-hosted git repository.

rlevas pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 818b21f  AMBARI-25069 - Ambari wrties Empty baseurl values written to 
Repo Files when using a local repository causing stack installation failure 
(#2743)
818b21f is described below

commit 818b21f211bfc27f5152749f2e445c63de98c78f
Author: Akhil S Naik <asn...@hortonworks.com>
AuthorDate: Tue Jan 15 22:19:29 2019 +0530

    AMBARI-25069 - Ambari wrties Empty baseurl values written to Repo Files 
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)
---
 ambari-web/app/controllers/wizard/step1_controller.js | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/ambari-web/app/controllers/wizard/step1_controller.js 
b/ambari-web/app/controllers/wizard/step1_controller.js
index d731a43..489e467 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'),

Reply via email to