summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-05-08 11:19:58 -0700
committerJohn Keiser <john@johnkeiser.com>2015-06-02 09:53:40 -0700
commit62a41290f2e899e86767267691878470a0b17e56 (patch)
tree9a595060e911fa0844b15c67b5c775d973398c9a
parent7f0ab6b097f9de46bdbb0b2e4460c2bfc9743974 (diff)
downloadchef-62a41290f2e899e86767267691878470a0b17e56.tar.gz
Fix issue with supported_handlers including disabled handlers
-rw-r--r--lib/chef/provider_resolver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider_resolver.rb b/lib/chef/provider_resolver.rb
index 3c644dd489..5bfee343d1 100644
--- a/lib/chef/provider_resolver.rb
+++ b/lib/chef/provider_resolver.rb
@@ -90,7 +90,7 @@ class Chef
# Narrow it down to handlers that return `true` to `supports?`
# TODO deprecate this and allow actions to be passed as a filter to
# `provides` so we don't have to have two separate things.
- supported_handlers = handlers.select { |handler| handler.supports?(resource, action) }
+ supported_handlers = enabled_handlers.select { |handler| handler.supports?(resource, action) }
if supported_handlers.empty?
# if none of the providers specifically support the resource, we still need to pick one of the providers that are
# enabled on the node to handle the why-run use case. FIXME we should only do this in why-run mode then.