summaryrefslogtreecommitdiff
path: root/lib/chef/resource/log.rb
diff options
context:
space:
mode:
authorSeth Vargo <sethvargo@gmail.com>2013-09-19 19:46:43 -0400
committerBryan McLellan <btm@opscode.com>2013-10-04 09:52:09 -0700
commit665f6a5a5791a3519b7dcb3c81b1e08c66987263 (patch)
treea6adbccae89905dc4773381f5f5ecaf5de78ce27 /lib/chef/resource/log.rb
parent9d6361d69557b929d73afd048aae21f3fc3e6bd8 (diff)
downloadchef-665f6a5a5791a3519b7dcb3c81b1e08c66987263.tar.gz
[CHEF-4561] Add :write as a valid action to the log resource
Diffstat (limited to 'lib/chef/resource/log.rb')
-rw-r--r--lib/chef/resource/log.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource/log.rb b/lib/chef/resource/log.rb
index f62ffaf176..391c3b5393 100644
--- a/lib/chef/resource/log.rb
+++ b/lib/chef/resource/log.rb
@@ -47,6 +47,7 @@ class Chef
@resource_name = :log
@level = :info
@action = :write
+ @allowed_actions.push(:write)
@message = name
end