puppet: Beware of the Fake False!

Posted . Visible to the public.

The condition for an if statement has to resolve to a boolean true/false value. However, all facts are strings, and all non-empty strings — including the string "false" — are true. This means that facts that are “false” need to be transformed before Puppet will treat them as false.

License
Source code in this card is licensed under the MIT License.
Posted by Kim Klotz to makandra dev (2015-01-13 22:31)