diff options
author | pixdrift <support@pixeldrift.net> | 2018-09-24 06:48:10 +1000 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-11-30 13:37:18 -0800 |
commit | c807145e68f045a3211c37e283f1459fbfa5a9c9 (patch) | |
tree | bc73c6aff1c9e616dca75a77e6c4db9a395e2fe9 | |
parent | 5f18b46e1073e100f113e49fbd9911bd93cff2c9 (diff) | |
download | chef-c807145e68f045a3211c37e283f1459fbfa5a9c9.tar.gz |
Add RHEL 8 platform-python to python binary search list in DNF for package resourcerhel8_chef14
Signed-off-by: pixdrift <support@pixeldrift.net>
-rw-r--r-- | lib/chef/provider/package/dnf/python_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/provider/package/dnf/python_helper.rb b/lib/chef/provider/package/dnf/python_helper.rb index b3593f6efd..56706764d0 100644 --- a/lib/chef/provider/package/dnf/python_helper.rb +++ b/lib/chef/provider/package/dnf/python_helper.rb @@ -37,7 +37,8 @@ class Chef DNF_HELPER = ::File.expand_path(::File.join(::File.dirname(__FILE__), "dnf_helper.py")).freeze def dnf_command - @dnf_command ||= which("python", "python3", "python2", "python2.7") do |f| + # platform-python is used for system tools on RHEL 8 and is installed under /usr/libexec + @dnf_command ||= which("platform-python", "python", "python3", "python2", "python2.7", extra_path: "/usr/libexec") do |f| shell_out("#{f} -c 'import dnf'").exitstatus == 0 end + " #{DNF_HELPER}" end |