summaryrefslogtreecommitdiff
path: root/lib/chef/resource/file
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-09-25 07:19:48 -0700
committerJohn Keiser <john@johnkeiser.com>2015-09-25 12:22:19 -0700
commit424b2dda9b4a2a0ca3e7ca8c9a598643b303ec0f (patch)
treea687cef44f257a6b7402da826ed9292164707f20 /lib/chef/resource/file
parentc576de210dc42889d796074187a109a8d0dd6a19 (diff)
downloadchef-424b2dda9b4a2a0ca3e7ca8c9a598643b303ec0f.tar.gz
Find the spot the user called and use that as the deprecation location
Diffstat (limited to 'lib/chef/resource/file')
-rw-r--r--lib/chef/resource/file/verification.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/resource/file/verification.rb b/lib/chef/resource/file/verification.rb
index 9b0788fad3..ba0bb08201 100644
--- a/lib/chef/resource/file/verification.rb
+++ b/lib/chef/resource/file/verification.rb
@@ -110,8 +110,7 @@ class Chef
# is interpolated. Until `file` can be deprecated, interpolate both.
Chef.log_deprecation(
'%{file} is deprecated in verify command and will not be '\
- 'supported in Chef 13. Please use %{path} instead.',
- caller(2..2)[0]
+ 'supported in Chef 13. Please use %{path} instead.'
) if @command.include?('%{file}')
command = @command % {:file => path, :path => path}
interpreter = Chef::GuardInterpreter.for_resource(@parent_resource, command, @command_opts)