summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@opscode.com>2021-04-28 15:24:17 -0700
committerGitHub <noreply@github.com>2021-04-28 15:24:17 -0700
commit669b6569fdd2232cbcb821176537c81f46bc81d9 (patch)
treeca76ca6d6da41732b2aa9d5e3fc4420d7ddad6c6
parent482973780afbdf080219d9b68dd6e23944612ac1 (diff)
parentfd8cacbdb02c45389029058fce01fc2c177da62f (diff)
downloadchef-669b6569fdd2232cbcb821176537c81f46bc81d9.tar.gz
Merge pull request #11469 from chef/lcg/fix-deprecation-warning-location
-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 8fa23865b3..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`"
+ 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>)