Skip to content

Commit

Permalink
move resource conditional to not wrap resource
Browse files Browse the repository at this point in the history
rather follow it, for readability. Refs #95
  • Loading branch information
miketheman committed Mar 20, 2014
1 parent f183710 commit 3e23489
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions recipes/dd-handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
require 'chef/handler/datadog'

# Create the handler to run at the end of the Chef execution
if node['datadog']['chef_handler_enable']
chef_handler "Chef::Handler::Datadog" do
source "chef/handler/datadog"
arguments [
Expand All @@ -50,5 +49,4 @@
]
supports :report => true, :exception => true
action :nothing
end.run_action(:enable)
end
end.run_action(:enable) if node['datadog']['chef_handler_enable']

0 comments on commit 3e23489

Please sign in to comment.