summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service/openbsd.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-11-15 15:16:07 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-12-06 13:08:26 -0800
commitfaa499f9fd646ccdc05d7520512c087d672f755d (patch)
tree643b56d26de3dfe6c2f04613d242eb950aec6ee6 /lib/chef/provider/service/openbsd.rb
parent76427185b3dddfc9901dc2cbe5f1f7a6c9af661c (diff)
downloadchef-faa499f9fd646ccdc05d7520512c087d672f755d.tar.gz
fix Style/NonNilCheck
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/service/openbsd.rb')
-rw-r--r--lib/chef/provider/service/openbsd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/openbsd.rb b/lib/chef/provider/service/openbsd.rb
index c60bbf170c..780337e1b6 100644
--- a/lib/chef/provider/service/openbsd.rb
+++ b/lib/chef/provider/service/openbsd.rb
@@ -72,7 +72,7 @@ class Chef
end
requirements.assert(:start, :enable, :reload, :restart) do |a|
- a.assertion { init_command && builtin_service_enable_variable_name != nil }
+ a.assertion { init_command && !builtin_service_enable_variable_name.nil? }
a.failure_message Chef::Exceptions::Service, "Could not find the service name in #{init_command} and rcvar"
# No recovery in whyrun mode - the init file is present but not correct.
end