Repository: ambari
Updated Branches:
  refs/heads/trunk 8574cc069 -> e87da0862


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/e87da086
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e87da086
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e87da086

Branch: refs/heads/trunk
Commit: e87da0862abb712ab7e5ba9d2e7dbbf682647a99
Parents: 8574cc0
Author: Alex Antonenko <[email protected]>
Authored: Mon Sep 18 16:49:48 2017 +0300
Committer: Alex Antonenko <[email protected]>
Committed: Mon Sep 18 16:49:48 2017 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/e87da086/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 5e914d0..8ffb29b 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