diff options
author | Helen <helen@puppetlabs.com> | 2016-10-10 14:16:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-10 14:16:06 +0100 |
commit | 59553c8c2ec1f0732c4383ab31ab8b7a05da544e (patch) | |
tree | a053adedae452a346847dbc36ede6bf2c28d18b8 /lib/puppet/parser | |
parent | 9debb12b2d6190045a11d2277c7b730ac5732f96 (diff) | |
parent | 729e076f1d5eee87c22fee1253dd6cac039f8509 (diff) |
Merge pull request #668 from DavidS/final-cleanups
Final cleanups
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r-- | lib/puppet/parser/functions/deprecation.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/parser/functions/deprecation.rb b/lib/puppet/parser/functions/deprecation.rb index 0cb247d..e30f3a0 100644 --- a/lib/puppet/parser/functions/deprecation.rb +++ b/lib/puppet/parser/functions/deprecation.rb @@ -11,9 +11,7 @@ EOS message = arguments[1] if ENV['STDLIB_LOG_DEPRECATIONS'] == "true" - caller_infos = caller.first.split(":") - err_message = "#{message} : #{caller_infos[0]} : #{caller_infos[1]}" - warning("deprecation. #{key}. #{err_message}") + warning("deprecation. #{key}. #{message}") end end end |