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

asnaik pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


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

commit 73ab2bc3dda7b691867a9cf6e18693157e8a241b
Author: Akhil S Naik <asn...@cloudera.com>
AuthorDate: Thu Apr 4 08:15:09 2019 +0530

    AMBARI-25069 - Ambari wrties Empty baseurl values written to Repo Files 
when using a local repository causing stack installation failure (#2837)
    
    * 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 | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/ambari-web/app/controllers/wizard/step1_controller.js 
b/ambari-web/app/controllers/wizard/step1_controller.js
index d731a43..9d5db2a 100644
--- a/ambari-web/app/controllers/wizard/step1_controller.js
+++ b/ambari-web/app/controllers/wizard/step1_controller.js
@@ -194,11 +194,13 @@ 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();
+       if(stack.get('useLocalRepo') !== true){
+          stack.setProperties({
+            usePublicRepo: false,
+            useLocalRepo: true
+          });
+          stack.cleanReposBaseUrls();
+        }
       });
     }
   }.observes('networkIssuesExist'),

Reply via email to