summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2016-04-05 15:41:49 -0400
committerNoah Kantrowitz <noah@coderanger.net>2016-04-05 15:41:49 -0400
commitea341043d8ad3f0852e0dfc8d8383704a4bc7623 (patch)
tree6106b5fc50dd8ce6a7e5ecc072fbcfaf85591f28
parent599b15c22a6a0c1f3125f901c075fb6d013f6307 (diff)
downloadchef-ea341043d8ad3f0852e0dfc8d8383704a4bc7623.tar.gz
Fix some nits. [ci skip]
-rw-r--r--lib/chef/provider/service/redhat.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/service/redhat.rb b/lib/chef/provider/service/redhat.rb
index 4e17caf768..ef83ff6ea6 100644
--- a/lib/chef/provider/service/redhat.rb
+++ b/lib/chef/provider/service/redhat.rb
@@ -57,13 +57,13 @@ class Chef
requirements.assert(:all_actions) do |a|
chkconfig_file = "/sbin/chkconfig"
a.assertion { ::File.exists? chkconfig_file }
- a.failure_message Chef::Exceptions::Service, "#{chkconfig_file} dbleoes not exist!"
+ a.failure_message Chef::Exceptions::Service, "#{chkconfig_file} does not exist!"
end
requirements.assert(:enable) do |a|
a.assertion { !@service_missing }
a.failure_message Chef::Exceptions::Service, "#{new_resource}: Service is not known to chkconfig."
- a.whyrun "Assuming service would be disabled. The init script is not presently installed."
+ a.whyrun "Assuming service would be enabled. The init script is not presently installed."
end
requirements.assert(:start, :reload, :restart) do |a|
@@ -71,7 +71,7 @@ class Chef
new_resource.init_command || custom_command_for_action?(action) || !@service_missing
end
a.failure_message Chef::Exceptions::Service, "#{new_resource}: No custom command for #{action} specified and unable to locate the init.d script!"
- a.whyrun "Assuming service would be disabled. The init script is not presently installed."
+ a.whyrun "Assuming service would be enabled. The init script is not presently installed."
end
end