diff options
author | Helen Campbell <helen@puppetlabs.com> | 2016-08-23 15:02:39 +0100 |
---|---|---|
committer | Helen Campbell <helen@puppetlabs.com> | 2016-09-05 17:43:56 +0100 |
commit | 6c6c6d8e3448e3072d590a0782237486e46bc88d (patch) | |
tree | b65308e8b83806063cbd7f20507c57599f0efa8c /lib/puppet/parser/functions | |
parent | 0acff935f8b12938f0a21769a8959a8ba983e60d (diff) |
Deprecation function to be mutable in all cases
Diffstat (limited to 'lib/puppet/parser/functions')
-rw-r--r-- | lib/puppet/parser/functions/deprecation.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions/deprecation.rb b/lib/puppet/parser/functions/deprecation.rb index fc861a6..e30f3a0 100644 --- a/lib/puppet/parser/functions/deprecation.rb +++ b/lib/puppet/parser/functions/deprecation.rb @@ -9,7 +9,9 @@ EOS key = arguments[0] message = arguments[1] - - warning("deprecation. #{key}. #{message}") + + if ENV['STDLIB_LOG_DEPRECATIONS'] == "true" + warning("deprecation. #{key}. #{message}") + end end end |