Re: [Puppet Users] passing a regex as a class parameter

2017-06-28 Thread Henrik Lindberg
On 27/06/17 17:44, 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 pupp

Re: [Puppet Users] passing a regex as a class parameter

2017-06-27 Thread Christopher Wood
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. > >

[Puppet Users] passing a regex as a class parameter

2017-06-27 Thread Christopher Wood
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: Eval