You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2017/10/24 20:15:08 UTC

[47/50] [abbrv] ambari git commit: AMBARI-22272: HDP + HDF installation fails in Ambari 2.6 - one-line fix for install_packages.py (jluniya)

AMBARI-22272: HDP + HDF installation fails in Ambari 2.6 - one-line fix for install_packages.py (jluniya)

(cherry picked from commit a2d81a997923c772e04fbfd5bf0155c88e25b9d3)

Change-Id: Id97de843e27b4b3131f5f7c3e4a111a5e654f1c2


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

Branch: refs/heads/AMBARI-2.6.0.0
Commit: 73d01f4b027b23f368dfa7aeb8f2f1ab1d9ca768
Parents: e3931cc
Author: Jayush Luniya <jl...@hortonworks.com>
Authored: Mon Oct 23 11:46:05 2017 -0700
Committer: Zuul <re...@hortonworks.com>
Committed: Mon Oct 23 14:04:28 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/73d01f4b/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: