From fcb410c21bf7d0a34f14d9a8309087bae5e8c094 Mon Sep 17 00:00:00 2001 From: John Bond Date: Thu, 26 Aug 2021 19:32:58 +0200 Subject: [PATCH] max, lstrip: fix deprecated message --- lib/puppet/parser/functions/lstrip.rb | 2 +- lib/puppet/parser/functions/max.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet/parser/functions/lstrip.rb b/lib/puppet/parser/functions/lstrip.rb index 16e0006dd..62c73f1c3 100644 --- a/lib/puppet/parser/functions/lstrip.rb +++ b/lib/puppet/parser/functions/lstrip.rb @@ -12,7 +12,7 @@ module Puppet::Parser::Functions The stripped string > **Note:** **Deprecated** from Puppet 6.0.0, this function has been replaced with a - built-in [`max`](https://puppet.com/docs/puppet/latest/function.html#max) function. + built-in [`lstrip`](https://puppet.com/docs/puppet/latest/function.html#lstrip) function. DOC ) do |arguments| raise(Puppet::ParseError, "lstrip(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.empty? diff --git a/lib/puppet/parser/functions/max.rb b/lib/puppet/parser/functions/max.rb index 173dc0e9a..b0eac1613 100644 --- a/lib/puppet/parser/functions/max.rb +++ b/lib/puppet/parser/functions/max.rb @@ -14,7 +14,7 @@ module Puppet::Parser::Functions The highest value among those passed in > **Note:** **Deprecated** from Puppet 6.0.0, this function has been replaced with a - built-in [`lstrip`](https://puppet.com/docs/puppet/latest/function.html#lstrip) function. + built-in [`max`](https://puppet.com/docs/puppet/latest/function.html#max) function. DOC ) do |args| raise(Puppet::ParseError, 'max(): Wrong number of arguments need at least one') if args.empty?