diff options
author | Tim Smith <tsmith@chef.io> | 2018-11-30 11:11:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-30 11:11:43 -0800 |
commit | 9cc7ae4944770dc061dfac479c7a0ba525944f61 (patch) | |
tree | 53b085392374d25ffb692b5160a6aafefc8a3b79 | |
parent | 9ef9467c5132a0f5dd3c854293bf3e92fa75b533 (diff) | |
parent | ddebf8540d4b3870ef649c0797262ff6777a0118 (diff) | |
download | chef-9cc7ae4944770dc061dfac479c7a0ba525944f61.tar.gz |
Merge pull request #8005 from chef/lcg/rhel8-yum-package-fix
RHEL8 yum_package fix.
-rw-r--r-- | lib/chef/provider/package/yum/python_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/yum/python_helper.rb b/lib/chef/provider/package/yum/python_helper.rb index 3da4bb92e8..6ae9cc911a 100644 --- a/lib/chef/provider/package/yum/python_helper.rb +++ b/lib/chef/provider/package/yum/python_helper.rb @@ -40,7 +40,7 @@ class Chef YUM_HELPER = ::File.expand_path(::File.join(::File.dirname(__FILE__), "yum_helper.py")).freeze def yum_command - @yum_command ||= which("python", "python2", "python2.7") do |f| + @yum_command ||= which("platform-python", "python", "python2", "python2.7", extra_path: "/usr/libexec") do |f| shell_out("#{f} -c 'import yum'").exitstatus == 0 end + " #{YUM_HELPER}" end |