diff options
author | John Keiser <john@johnkeiser.com> | 2015-06-16 11:14:20 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-06-16 11:14:20 -0700 |
commit | bc5227d5ac004800a30b7b1353fa7461b132f2cb (patch) | |
tree | 3b3b7ba372639dbdf744407289464957d49a95fc /lib/chef/resource | |
parent | b08c9010c387c762a6fa82fa9ae8c2a5e5c8594d (diff) | |
download | chef-bc5227d5ac004800a30b7b1353fa7461b132f2cb.tar.gz |
Ensure :nothing is in the list of allowed actions for an LWRP
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/lwrp_base.rb | 2 |
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 |