After more discussion in #puppet on freenode, this thing:

https://tickets.puppetlabs.com/browse/PUP-7735

On Tue, Jun 27, 2017 at 11:44:26AM -0400, Christopher Wood wrote:
> 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?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/20170627154426.b4agpelmzzwzre2h%40iniquitous.heresiarch.ca.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/20170627170211.od4exzhulkm7bmkc%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to