On Mon, Nov 7, 2011 at 1:45 PM, midair77 <midai...@gmail.com> wrote: > Dear all, > > I have a parameterized class and I have my ECN in perl as followed: > > classes{'myclass'} = { "abc" => On,}; > > and in my template erb: > > SecRuleEngine <%= abc %> > > ---- > > When I applied this to my puppet agent, I would then get: > > SecRuleEngine true. > > How is that On becomes true and Off becomes false? How can I fix > this? >
Do you get exactly the same thing if you quote "On" so it's actually a string? I'm not sure which part of Ruby is doing the magical translation that you don't want, but you definitely shouldn't get it if you tell Puppet that "On" is a string. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.