summaryrefslogtreecommitdiff
path: root/lib/chef/resource/log.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/log.rb')
-rw-r--r--lib/chef/resource/log.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/log.rb b/lib/chef/resource/log.rb
index 5b4081b0fe..5c119df4d8 100644
--- a/lib/chef/resource/log.rb
+++ b/lib/chef/resource/log.rb
@@ -27,6 +27,8 @@ class Chef
identity_attr :message
+ default_action :write
+
# Sends a string from a recipe to a log provider
#
# log "some string to log" do
@@ -50,8 +52,6 @@ class Chef
def initialize(name, run_context=nil)
super
@level = :info
- @action = :write
- @allowed_actions.push(:write)
@message = name
end