summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppet.com>2016-09-06 09:55:34 +0100
committerGitHub <noreply@github.com>2016-09-06 09:55:34 +0100
commit0262410b696f8d3644fb0dbd08db8b4794810eed (patch)
treef0388a89e8d6892d982d9935f8f8ff8314b1af0f /lib/puppet/parser/functions
parent56c9587e1124bebd88017e8dd82c1d6e584c7d97 (diff)
parent6c6c6d8e3448e3072d590a0782237486e46bc88d (diff)
Merge pull request #641 from HelenCampbell/deprecationUpdate
Deprecation function to be mutable in all cases
Diffstat (limited to 'lib/puppet/parser/functions')
-rw-r--r--lib/puppet/parser/functions/deprecation.rb6
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