Skip to content

Commit 85bdbcf

Browse files
authored
Merge pull request #694 from DavidS/fix-v3-deprecation-function-type
Remove rvalue declaration from v3 deprecation() function
2 parents 419f7d6 + c5fbd82 commit 85bdbcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet/parser/functions/deprecation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Puppet::Parser::Functions
2-
newfunction(:deprecation, :type => :rvalue, :doc => <<-EOS
2+
newfunction(:deprecation, :doc => <<-EOS
33
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.).
44
EOS
55
) do |arguments|
@@ -9,7 +9,7 @@ module Puppet::Parser::Functions
99

1010
key = arguments[0]
1111
message = arguments[1]
12-
12+
1313
if ENV['STDLIB_LOG_DEPRECATIONS'] == "true"
1414
warning("deprecation. #{key}. #{message}")
1515
end

0 commit comments

Comments
 (0)