Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 53b269989 -> 35003f4e6


AMBARI-22165 Hbase Client install fails (dgrinenko)


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

Branch: refs/heads/branch-2.6
Commit: 35003f4e67cb3a82c37238ade92ba2acee2bb97b
Parents: 53b2699
Author: Dmytro Grinenko <[email protected]>
Authored: Mon Oct 9 16:48:06 2017 +0300
Committer: Dmytro Grinenko <[email protected]>
Committed: Mon Oct 9 16:48:06 2017 +0300

----------------------------------------------------------------------
 .../python/resource_management/core/providers/package/yumrpm.py  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/35003f4e/ambari-common/src/main/python/resource_management/core/providers/package/yumrpm.py
----------------------------------------------------------------------
diff --git 
a/ambari-common/src/main/python/resource_management/core/providers/package/yumrpm.py
 
b/ambari-common/src/main/python/resource_management/core/providers/package/yumrpm.py
index 201297e..f774f77 100644
--- 
a/ambari-common/src/main/python/resource_management/core/providers/package/yumrpm.py
+++ 
b/ambari-common/src/main/python/resource_management/core/providers/package/yumrpm.py
@@ -87,9 +87,7 @@ class YumProvider(RPMBasedPackageProvider):
 
     # fallback logic
 
-    fallback_avail_pkgs, fallback_inst_pkgs = len(available_packages) <= 0, 
len(installed_packages) <= 0
-
-    if fallback_avail_pkgs or fallback_inst_pkgs:
+    if repos.feat.scoped:
       fallback_repo_ids = set(repo_ids) ^ self._build_repos_ids(repos)  # no 
reason to scan the same repos again
       if fallback_repo_ids:
         Logger.info("Adding fallback repositories: {0}".format(", 
".join(fallback_repo_ids)))

Reply via email to