I actually put "On" in double quote in my ECN and I did not get the
desired output.

This is quite weird as why On/Off has been converted to true/false in
erb template.

Thank you, Nigel.

On Nov 7, 2:39 pm, Nigel Kersten <[email protected]> wrote:
> On Mon, Nov 7, 2011 at 1:45 PM, midair77 <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to