Repository: ambari Updated Branches: refs/heads/branch-2.6 810488abc -> a2d81a997
AMBARI-22272: HDP + HDF installation fails in Ambari 2.6 - one-line fix for install_packages.py (jluniya) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a2d81a99 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a2d81a99 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a2d81a99 Branch: refs/heads/branch-2.6 Commit: a2d81a997923c772e04fbfd5bf0155c88e25b9d3 Parents: 810488a Author: Jayush Luniya <[email protected]> Authored: Mon Oct 23 11:46:05 2017 -0700 Committer: Jayush Luniya <[email protected]> Committed: Mon Oct 23 11:46:18 2017 -0700 ---------------------------------------------------------------------- .../src/main/resources/custom_actions/scripts/install_packages.py | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/a2d81a99/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py b/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py index 114603d..8ba22d2 100644 --- a/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py +++ b/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py @@ -331,6 +331,7 @@ class InstallPackages(Script): # patches installed repositories = config['repositoryFile']['repositories'] command_repos = CommandRepository(config['repositoryFile']) + command_repos.items = [x for x in command_repos.items if not x.applicable_services] repository_ids = [repository['repoId'] for repository in repositories] repos_to_use = {} for repo_id in repository_ids:
