summaryrefslogtreecommitdiff
path: root/lib/puppet
diff options
context:
space:
mode:
authorBryan Jen <bryan.jen@gmail.com>2016-11-21 14:18:29 -0700
committerGitHub <noreply@github.com>2016-11-21 14:18:29 -0700
commit91847caad08faba7f3cd12badff73a3f936ff9d1 (patch)
tree08bbe462028563052bcc4c885562326684a2c06e /lib/puppet
parent3762f301772cafc33c2e74356ebba287086869aa (diff)
Revert "Call site output for deprecation warnings"
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/functions/deprecation.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/puppet/functions/deprecation.rb b/lib/puppet/functions/deprecation.rb
index 7082068..a860aa2 100644
--- a/lib/puppet/functions/deprecation.rb
+++ b/lib/puppet/functions/deprecation.rb
@@ -8,19 +8,15 @@ Puppet::Functions.create_function(:deprecation) do
end
def deprecation(key, message)
- stacktrace = Puppet::Pops::PuppetStack.stacktrace()
- file = stacktrace[0]
- line = stacktrace[1]
- output_message = "#{message} at #{file}:#{line}"
# depending on configuration setting of strict
case Puppet.settings[:strict]
when :off
# do nothing
when :error
- fail("deprecation. #{key}. #{output_message}")
+ fail("deprecation. #{key}. #{message}")
else
unless ENV['STDLIB_LOG_DEPRECATIONS'] == 'false'
- Puppet.deprecation_warning(output_message, key)
+ Puppet.deprecation_warning(message, key)
end
end
end