summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-04-28 14:30:05 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2021-04-28 14:30:05 -0700
commitfd8cacbdb02c45389029058fce01fc2c177da62f (patch)
treea2853173b92614c5e866c9d7082afd873a5bc7ba
parent68d4183c3426c505968b44bdd3b8ba3a20e5d761 (diff)
downloadchef-lcg/fix-deprecation-warning-location.tar.gz
Also get the resource name correctlcg/fix-deprecation-warning-location
This was printing out the old cookbook_name+resource_filename name of the resource Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/resource/lwrp_base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/lwrp_base.rb b/lib/chef/resource/lwrp_base.rb
index 4338accc85..5503bb5fce 100644
--- a/lib/chef/resource/lwrp_base.rb
+++ b/lib/chef/resource/lwrp_base.rb
@@ -54,7 +54,7 @@ class Chef
resource_class.class_from_file(filename)
unless resource_class.unified_mode
- Chef.deprecated :unified_mode, "The #{resource_name} resource in the #{cookbook_name} cookbook should declare `unified_mode true`", filename
+ Chef.deprecated :unified_mode, "The #{resource_class.resource_name} resource in the #{cookbook_name} cookbook should declare `unified_mode true`", filename
end
# Make a useful string for the class (rather than <Class:312894723894>)