diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb index cde202dcf2..36538b6e7a 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -1548,6 +1548,13 @@ class Chef # # Returns the class with the given resource_name. # + # NOTE: Chef::Resource.resource_matching_short_name(:package) returns + # Chef::Resource::Package, while on rhel the API call + # Chef::Resource.resource_for_node(:package, node) will return + # Chef::Resource::YumPackage -- which is probably what you really + # want. This API should most likely be removed or changed to call + # resource_for_node. + # # ==== Parameters # short_name<Symbol>:: short_name of the resource (ie :directory) # |