summaryrefslogtreecommitdiff
path: root/lib/chef/resource.rb
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2015-06-29 11:04:31 -0700
committerNoah Kantrowitz <noah@coderanger.net>2015-06-29 11:04:31 -0700
commitc8174db52dab1daef2b8dc22a591b890b54f98f5 (patch)
tree65bafb6fb7a09e6979944d2caf40c416c9dbe852 /lib/chef/resource.rb
parent84846e365a792801ef036b67ea9409c348b99096 (diff)
downloadchef-c8174db52dab1daef2b8dc22a591b890b54f98f5.tar.gz
Be paranoid about potential weird overrides of default_action.
Always compare them as arrays, just in case.
Diffstat (limited to 'lib/chef/resource.rb')
-rw-r--r--lib/chef/resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb
index f2f14b6955..12d4f007ba 100644
--- a/lib/chef/resource.rb
+++ b/lib/chef/resource.rb
@@ -1152,7 +1152,7 @@ class Chef
action = action.to_sym
new_action_provider_class.action(action, &recipe_block)
self.allowed_actions += [ action ]
- default_action action if default_action == [:nothing]
+ default_action action if Array(default_action) == [:nothing]
end
#