Skip to content

max, lstrip: fix deprecated message #1204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/puppet/parser/functions/lstrip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/parser/functions/max.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down