diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-11-30 09:57:44 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-11-30 09:57:44 -0800 |
commit | ddebf8540d4b3870ef649c0797262ff6777a0118 (patch) | |
tree | 53b085392374d25ffb692b5160a6aafefc8a3b79 | |
parent | 9ef9467c5132a0f5dd3c854293bf3e92fa75b533 (diff) | |
download | chef-ddebf8540d4b3870ef649c0797262ff6777a0118.tar.gz |
RHEL8 yum_package fix.
similar to #8003
closes #7988
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-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 |