We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 419f7d6 commit be54a4fCopy full SHA for be54a4f
lib/puppet/functions/deprecation.rb
@@ -8,6 +8,12 @@
8
end
9
10
def deprecation(key, message)
11
+ if defined? Puppet::Pops::PuppetStack.stacktrace()
12
+ stacktrace = Puppet::Pops::PuppetStack.stacktrace()
13
+ file = stacktrace[0]
14
+ line = stacktrace[1]
15
+ message << " at #{file}:#{line}"
16
+ end
17
# depending on configuration setting of strict
18
case Puppet.settings[:strict]
19
when :off
0 commit comments