summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-12-20 19:30:10 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-12-20 19:30:10 -0800
commit4055d3b8e39a8f8e8a75619e0acba814e8aa50b1 (patch)
tree7ce78b92483f9c9c85350f7e9b0733a61fd3720a
parent6f593e160180d226b840856776a284b6081f8424 (diff)
downloadchef-4055d3b8e39a8f8e8a75619e0acba814e8aa50b1.tar.gz
ninja add a note about this call
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/resource.rb7
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)
#