On Mon, 2011-12-19 at 16:14 +0000, Dan White wrote: > Sharing my stoopid mistake in the hopes of saving someone else the same grief: > > I had a boolean toggle that was not performing as expected. > > Long story short: I had put quotes around the word "false" > > class { 'foo' : boolFlag => "false" } was coming up TRUE > > To fix it, lose the quotes > class { 'foo' : boolFlag => false }
It all depends what is done with boolFlag in your parametrized class. More specifically what doesn't work is: if "false" { } Because a string when (internally) converted to a boolean is true. This was discussed 2 days ago (look when the thread changes name): http://groups.google.com/group/puppet-users/browse_thread/thread/3dfba6566d97880e/c473deea3f302410?# And this is tracked in the following bug: http://projects.puppetlabs.com/issues/5648 -- Brice Figureau Follow the latest Puppet Community evolutions on www.planetpuppet.org! -- 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.