summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service/openbsd.rb
diff options
context:
space:
mode:
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