Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
PUP 4.2.2
-
None
-
None
-
1
-
Language 2015-10-14, Language 2015-10-28
-
Bug Fix
-
Description
regsubst gives an error about being called with the wrong type if you give it an empty array of strings to do substitutions on. This used to work in Puppet 3.x.
$ puppet apply -e 'notice(regsubst([],"",""))'
|
Error: Evaluation Error: Error while evaluating a Function Call, function 'regsubst' called with mis-matched arguments
|
expected one of:
|
regsubst(Variant[Array[String], String] target, String pattern, String replacement, Optional[Pattern[/^[GEIM]*$/]] flags?, Enum['N', 'E', 'S', 'U'] encoding?) - arg count {3,5}
|
regsubst(Variant[Array[String], String] target, Variant[Regexp, Type[Regexp]] pattern, String replacement, Pattern[/^G?$/] flags?) - arg count {3,4}
|
actual:
|
regsubst(Array[Undef], String, String) - arg count {3} at line 1:8 on node valentina.local
|