summaryrefslogtreecommitdiff
path: root/lib/chef/provider_resolver.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-06-30 10:18:15 -0600
committerJohn Keiser <john@johnkeiser.com>2015-06-30 11:18:42 -0600
commit5bb507836095585274d5a9bb2802bf662fab4195 (patch)
tree30dbb8b5b2b2330dc6d6fbc4f6046d456461000e /lib/chef/provider_resolver.rb
parente2b79fd7e2e54cc063f6d4977bef3051ce8b08cf (diff)
downloadchef-5bb507836095585274d5a9bb2802bf662fab4195.tar.gz
Code review comments
Diffstat (limited to 'lib/chef/provider_resolver.rb')
-rw-r--r--lib/chef/provider_resolver.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider_resolver.rb b/lib/chef/provider_resolver.rb
index 6c49a39ba4..8e731ff96a 100644
--- a/lib/chef/provider_resolver.rb
+++ b/lib/chef/provider_resolver.rb
@@ -88,7 +88,7 @@ class Chef
private
def potential_handlers
- priority_map.list_handlers(node, resource.resource_name).flatten(1).uniq
+ priority_map.list_handlers(node, resource.resource_name)
end
# if resource.provider is set, just return one of those objects
@@ -126,11 +126,11 @@ class Chef
end
def self.priority_map
- Chef::Platform::ProviderPriorityMap.instance
+ Chef.provider_priority_map
end
def priority_map
- Chef::Platform::ProviderPriorityMap.instance
+ Chef.provider_priority_map
end
def overrode_provides?(handler)