diff options
Diffstat (limited to 'lib/chef/platform.rb')
-rw-r--r-- | lib/chef/platform.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/platform.rb b/lib/chef/platform.rb index 2e5899a5af..55e85ae354 100644 --- a/lib/chef/platform.rb +++ b/lib/chef/platform.rb @@ -73,11 +73,12 @@ class Chef pmap = Chef::Platform.find(platform, version) rtkey = resource_type if resource_type.kind_of?(Chef::Resource) - rtkey = resource_type.resource_name + rtkey = resource_type.resource_name.to_sym end if pmap.has_key?(rtkey) pmap[rtkey] else + Chef::Log.error("#{rtkey.inspect} #{pmap.inspect}") raise( ArgumentError, "Cannot find a provider for #{resource_type} on #{platform} version #{version}" |