From c8174db52dab1daef2b8dc22a591b890b54f98f5 Mon Sep 17 00:00:00 2001 From: Noah Kantrowitz Date: Mon, 29 Jun 2015 11:04:31 -0700 Subject: Be paranoid about potential weird overrides of default_action. Always compare them as arrays, just in case. --- lib/chef/resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 # -- cgit v1.2.1