summaryrefslogtreecommitdiff
path: root/lib/chef/platform
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-05-07 09:53:35 -0700
committerJohn Keiser <john@johnkeiser.com>2015-05-13 13:43:15 -0700
commit27c57238f1f2fddc7d03dad818a6b7ee78cbff96 (patch)
treebba0c04ced9a410ad5363c74e3a8462ee27e3d8c /lib/chef/platform
parent2032c6776587f9450ddba182867973ab5bee1b75 (diff)
downloadchef-27c57238f1f2fddc7d03dad818a6b7ee78cbff96.tar.gz
Deprecate dsl_name (the "DSL name for this class" is no longer meaningful).
Diffstat (limited to 'lib/chef/platform')
-rw-r--r--lib/chef/platform/provider_mapping.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/platform/provider_mapping.rb b/lib/chef/platform/provider_mapping.rb
index 763ae79368..8e9f46619f 100644
--- a/lib/chef/platform/provider_mapping.rb
+++ b/lib/chef/platform/provider_mapping.rb
@@ -467,7 +467,7 @@ class Chef
begin
class_name = resource_type.class.to_s.split('::').last
result = Chef::Provider.const_get(class_name)
- Chef::Log.warn("Class Chef::Provider::#{class_name} does not declare 'provides #{resource_type.class.dsl_name.to_sym.inspect}'.")
+ Chef::Log.warn("Class Chef::Provider::#{class_name} does not declare 'provides #{resource.resource_name.inspect}'.")
Chef::Log.warn("This will no longer work in Chef 13: you must use 'provides' to provide DSL.")
result
rescue NameError