summaryrefslogtreecommitdiff
path: root/lib/chef/provider/launchd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/launchd.rb')
-rw-r--r--lib/chef/provider/launchd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/launchd.rb b/lib/chef/provider/launchd.rb
index 4f20a417a6..9974a9a786 100644
--- a/lib/chef/provider/launchd.rb
+++ b/lib/chef/provider/launchd.rb
@@ -164,7 +164,7 @@ class Chef
:create, :create_if_missing, :delete, :enable, :disable
) do |a|
type = new_resource.type
- a.assertion { %w{daemon agent}.include?(type.to_s) }
+ a.assertion do %w{daemon agent}.include?(type.to_s) end
error_msg = "type must be daemon or agent."
a.failure_message Chef::Exceptions::ValidationFailed, error_msg
end