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 puppet-users+unsubscr...@googlegroups.com.
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.

Reply via email to