A little oddity I stumbled across while getting things wrong about somebody's pastebin entry in #puppet on freenode.
This thing:
class classname (
Regexp $param,
) {
notice('yes')
}
class { 'classname':
param => /^.$/,
}
Does this with puppet 4.10.2:
$ puppet apply /tmp/z.pp
Error: Evaluation Error: Error while evaluating a Resource Statement, Class[Classname]: parameter 'param' expects a Regexp value, got String at /tmp/z.pp:7:1 on node
cwl.me.com
Am I even supposed to be able to pass a Regexp to a class?