summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-04-28 14:24:52 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2021-04-28 14:24:52 -0700
commit68d4183c3426c505968b44bdd3b8ba3a20e5d761 (patch)
tree2529ceae551492bd8f47f2cce773930ca1b297e6
parent6955a9c923aeb6f4392a0f39562ef1a0fb48d9f1 (diff)
downloadchef-68d4183c3426c505968b44bdd3b8ba3a20e5d761.tar.gz
Fix location of deprecation message
This was reporting it was somewhere inside of forwardable.rb which was very wrong. 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 8fa23865b3..4338accc85 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_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>)