diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-08 14:33:58 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-08 14:33:58 -0800 |
commit | 0fe7fcfca67fca6d6f3f7ed0b639c605d9a5d68f (patch) | |
tree | e44a0c793911292d7ead80725c8a94e2e661a4fe | |
parent | 4650185d366874c175bd043d11fad6244ba33e6f (diff) | |
download | chef-0fe7fcfca67fca6d6f3f7ed0b639c605d9a5d68f.tar.gz |
add a comment for anyone who gets really lost
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-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 cf8682396e..23de50324c 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -1478,6 +1478,13 @@ class Chef # @api private def lookup_provider_constant(name, action = :nothing) + # XXX: "name" is probably a poor choice of name here, ideally this would be nil, but we need to + # fix resources so that nil or empty names work (also solving the apt_update "doesn't matter one bit" + # problem). WARNING: this string is not a public API and should not be referenced (e.g. in provides blocks) + # and may change at any time. If you've found this comment you're also probably very lost and should maybe + # consider using `declare_resource :whatever` instead of trying to set `provider :whatever` on a resource, or in some + # other way reconsider what you're trying to do, since you're likely trying to force a bad design that we + # can't/won't support. self.class.resource_for_node(name, node).new("name", run_context).provider_for_action(action).class end |