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 18ef245083..9e8ff30216 100644
--- a/lib/chef/provider/service/redhat.rb
+++ b/lib/chef/provider/service/redhat.rb
@@ -32,8 +32,8 @@ class Chef
Chef::Platform::ServiceHelpers.service_resource_providers.include?(:redhat)
end
- CHKCONFIG_ON = /\d:on/
- CHKCONFIG_MISSING = /No such/
+ CHKCONFIG_ON = /\d:on/.freeze
+ CHKCONFIG_MISSING = /No such/.freeze
def self.supports?(resource, action)
Chef::Platform::ServiceHelpers.config_for_service(resource.service_name).include?(:initd)