Repository: ambari
Updated Branches:
  refs/heads/trunk 2a77e39ca -> 96d66e0d4


AMBARI-18535 Ambari is not picking up the latest repo for HDP-2.4 (zhewang)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/96d66e0d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/96d66e0d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/96d66e0d

Branch: refs/heads/trunk
Commit: 96d66e0d41d49e67d11d5ea558c24d858f4b9577
Parents: 2a77e39
Author: Zhe (Joe) Wang <zhew...@apache.org>
Authored: Fri Oct 14 17:58:59 2016 -0700
Committer: Zhe (Joe) Wang <zhew...@apache.org>
Committed: Fri Oct 14 17:58:59 2016 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/installer.js | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/96d66e0d/ambari-web/app/controllers/installer.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/installer.js 
b/ambari-web/app/controllers/installer.js
index 5493b3a..ab1dbd4 100644
--- a/ambari-web/app/controllers/installer.js
+++ b/ambari-web/app/controllers/installer.js
@@ -726,6 +726,17 @@ App.InstallerController = App.WizardController.extend({
         });
         existedOS.push(supportedOS);
       }
+      if(existedMap[supportedOS.OperatingSystems.os_type]) {
+        
existedMap[supportedOS.OperatingSystems.os_type].repositories.forEach(function 
(repo) {
+          supportedOS.repositories.forEach(function (supportedRepo) {
+            if (supportedRepo.Repositories.repo_id == 
repo.Repositories.repo_id) {
+              repo.Repositories.base_url = supportedRepo.Repositories.base_url;
+              repo.Repositories.default_base_url = 
supportedRepo.Repositories.default_base_url;
+              repo.Repositories.latest_base_url = 
supportedRepo.Repositories.latest_base_url;
+            }
+          });
+        });
+      }
     });
     App.stackMapper.map(data.versionDefinition);
 

Reply via email to