summaryrefslogtreecommitdiff
path: root/lib/chef/resource/lwrp_base.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-06-16 11:14:20 -0700
committerJohn Keiser <john@johnkeiser.com>2015-06-16 11:14:20 -0700
commitbc5227d5ac004800a30b7b1353fa7461b132f2cb (patch)
tree3b3b7ba372639dbdf744407289464957d49a95fc /lib/chef/resource/lwrp_base.rb
parentb08c9010c387c762a6fa82fa9ae8c2a5e5c8594d (diff)
downloadchef-bc5227d5ac004800a30b7b1353fa7461b132f2cb.tar.gz
Ensure :nothing is in the list of allowed actions for an LWRP
Diffstat (limited to 'lib/chef/resource/lwrp_base.rb')
-rw-r--r--lib/chef/resource/lwrp_base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/lwrp_base.rb b/lib/chef/resource/lwrp_base.rb
index c486233020..86e22dd92b 100644
--- a/lib/chef/resource/lwrp_base.rb
+++ b/lib/chef/resource/lwrp_base.rb
@@ -86,7 +86,7 @@ class Chef
# Does not include superclass's action list when appending.
def actions(*action_names)
if !action_names.empty? && !@allowed_actions
- self.allowed_actions = action_names
+ self.allowed_actions = [ :nothing ] + action_names
else
allowed_actions(*action_names)
end