Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 274a2888f -> 665dfa3ef


AMBARI-21981. Repository versions written differently from base install and 
register version (alexantonenko)


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

Branch: refs/heads/branch-2.6
Commit: 665dfa3efd673227931a63abf5176906eccee179
Parents: 274a288
Author: Alex Antonenko <[email protected]>
Authored: Mon Sep 18 16:48:26 2017 +0300
Committer: Alex Antonenko <[email protected]>
Committed: Mon Sep 18 16:48:26 2017 +0300

----------------------------------------------------------------------
 .../controllers/stackVersions/StackVersionsCreateCtrl.js       | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/665dfa3e/ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js
----------------------------------------------------------------------
diff --git 
a/ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js
 
b/ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js
index 2507c09..c5f1a8c 100644
--- 
a/ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js
+++ 
b/ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js
@@ -290,6 +290,12 @@ angular.module('ambariAdminConsole')
       }
     });
 
+    if ( $scope.useRedhatSatellite ){
+      angular.forEach( $scope.osList, function (os) {
+        os.repositories = [];
+      } )
+    }
+
     var skip = $scope.skipValidation || $scope.useRedhatSatellite;
     return Stack.validateBaseUrls(skip, $scope.osList, 
$scope.upgradeStack).then(function (invalidUrls) {
       if (invalidUrls.length === 0) {

Reply via email to