Skip to content

Commit

Permalink
Merge pull request #694 from DavidS/fix-v3-deprecation-function-type
Browse files Browse the repository at this point in the history
Remove rvalue declaration from v3 deprecation() function
  • Loading branch information
eputnam authored Nov 28, 2016
2 parents 419f7d6 + c5fbd82 commit 85bdbcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/parser/functions/deprecation.rb
Original file line number Diff line number Diff line change
@@ -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|
Expand All @@ -9,7 +9,7 @@ module Puppet::Parser::Functions

key = arguments[0]
message = arguments[1]

if ENV['STDLIB_LOG_DEPRECATIONS'] == "true"
warning("deprecation. #{key}. #{message}")
end
Expand Down

0 comments on commit 85bdbcf

Please sign in to comment.