diff options
author | David Schmitt <david.schmitt@puppet.com> | 2016-10-07 13:00:06 +0100 |
---|---|---|
committer | David Schmitt <david.schmitt@puppet.com> | 2016-10-07 13:03:50 +0100 |
commit | a4ebae621dd4dc09d760a51b8b221a3250142789 (patch) | |
tree | bd502b52ff7f0cdb80d91a436bb351ca2100c51b /lib/puppet/parser | |
parent | e7825bc9dd0c33c986fcdc5e6dfd11c6cded8ca1 (diff) |
(FM-5703, PUP-6717) Remove the dynamic deprecation_gen
This was not working when the puppet master did not have the newest stdlib
version in its environment.
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r-- | lib/puppet/parser/functions/validate_slength.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/validate_slength.rb b/lib/puppet/parser/functions/validate_slength.rb index 1641e5a..1828f49 100644 --- a/lib/puppet/parser/functions/validate_slength.rb +++ b/lib/puppet/parser/functions/validate_slength.rb @@ -21,7 +21,7 @@ module Puppet::Parser::Functions ENDHEREDOC - function_deprecation([:puppet_3_type_check, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::String[x]. There is further documentation for validate_legacy function in the README.']) + function_deprecation([:puppet_3_type_check, 'This method is deprecated, please use the stdlib validate_legacy function, with String[]. There is further documentation for validate_legacy function in the README.']) raise Puppet::ParseError, "validate_slength(): Wrong number of arguments (#{args.length}; must be 2 or 3)" unless args.length == 2 or args.length == 3 |