summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/yum/python_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/package/yum/python_helper.rb')
-rw-r--r--lib/chef/provider/package/yum/python_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/package/yum/python_helper.rb b/lib/chef/provider/package/yum/python_helper.rb
index f99b17bcce..bc1124818d 100644
--- a/lib/chef/provider/package/yum/python_helper.rb
+++ b/lib/chef/provider/package/yum/python_helper.rb
@@ -40,9 +40,9 @@ class Chef
YUM_HELPER = ::File.expand_path(::File.join(::File.dirname(__FILE__), "yum_helper.py")).freeze
def yum_command
- @yum_command ||= which("platform-python", "python", "python2", "python2.7", extra_path: "/usr/libexec") do |f|
+ @yum_command ||= which("platform-python", "python", "python2", "python2.7", extra_path: "/usr/libexec") { |f|
shell_out("#{f} -c 'import yum'").exitstatus == 0
- end + " #{YUM_HELPER}"
+ } + " #{YUM_HELPER}"
end
def start