----- Original Message -----
> From: "Kevin G." <[email protected]>
> To: [email protected]
> Sent: Thursday, September 12, 2013 3:56:30 PM
> Subject: [Puppet Users] testing for truth, are the docs correct?
> 
> According to the documentation at
> http://docs.puppetlabs.com/puppet/2.7/reference/lang_conditional.html#if-statements,
> you can test for truth with syntax like this:
> 
>      if $is_virtual == 'true' {
> 
> AFAICT that's not the case.  The quotes around 'true'  make the comparison
> always fail.  Here's my test case

is_virtual is a fact, all facts are strings so in this case 'true' is exactly
what is needed :(

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to