diff options
author | Eric Putnam <putnam.eric@gmail.com> | 2016-11-28 09:36:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-28 09:36:59 -0800 |
commit | 85bdbcf79232f89203b65b9fa1a2e7bc7ddc067a (patch) | |
tree | 2d3a079f05f97874d0d317f83d1c0a8c7ffc214d /lib/puppet/parser/functions | |
parent | 419f7d63ecf4a98ae55d614bc692544a639820ab (diff) | |
parent | c5fbd82204e9832b0d398e894003e9898adb71fc (diff) |
Merge pull request #694 from DavidS/fix-v3-deprecation-function-type
Remove rvalue declaration from v3 deprecation() function
Diffstat (limited to 'lib/puppet/parser/functions')
-rw-r--r-- | lib/puppet/parser/functions/deprecation.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions/deprecation.rb b/lib/puppet/parser/functions/deprecation.rb index e30f3a0..cd64fe2 100644 --- a/lib/puppet/parser/functions/deprecation.rb +++ b/lib/puppet/parser/functions/deprecation.rb @@ -1,5 +1,5 @@ module Puppet::Parser::Functions - newfunction(:deprecation, :type => :rvalue, :doc => <<-EOS + newfunction(:deprecation, :doc => <<-EOS Function to print deprecation warnings (this is the 3.X version of it), The uniqueness key - can appear once. The msg is the message text including any positional information that is formatted by the user/caller of the method.). EOS ) do |arguments| @@ -9,7 +9,7 @@ EOS key = arguments[0] message = arguments[1] - + if ENV['STDLIB_LOG_DEPRECATIONS'] == "true" warning("deprecation. #{key}. #{message}") end |