summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service/redhat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/service/redhat.rb')
-rw-r--r--lib/chef/provider/service/redhat.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/service/redhat.rb b/lib/chef/provider/service/redhat.rb
index ec78ef2240..3ef7110002 100644
--- a/lib/chef/provider/service/redhat.rb
+++ b/lib/chef/provider/service/redhat.rb
@@ -56,7 +56,7 @@ class Chef
requirements.assert(:all_actions) do |a|
chkconfig_file = "/sbin/chkconfig"
- a.assertion { ::File.exists? chkconfig_file }
+ a.assertion { ::File.exist? chkconfig_file }
a.failure_message Chef::Exceptions::Service, "#{chkconfig_file} does not exist!"
end
@@ -80,7 +80,7 @@ class Chef
super
- if ::File.exists?("/sbin/chkconfig")
+ if ::File.exist?("/sbin/chkconfig")
chkconfig = shell_out!("/sbin/chkconfig --list #{current_resource.service_name}", returns: [0, 1])
unless run_levels.nil? || run_levels.empty?
all_levels_match = true