Add notes on true/false, yes/no, on/off

This commit is contained in:
Erik Johnson 2013-02-22 12:09:32 -08:00
parent 839bf1528f
commit eb1f3a50ca

View File

@ -79,6 +79,15 @@ is not desirable, then a deeply nested dict can be declared with curly braces:
.. _`dicts`: http://docs.python.org/library/stdtypes.html#dict
True/False, Yes/No, On/Off
==========================
PyYAML will load these values as boolean ``True`` or ``False``. Un-capitalized
versions will also be loaded as booleans (``true``, ``false``, ``yes``, ``no``,
``on``, and ``off``). This can be especially problematic when constructing
Pillar data. Make sure that your Pillars which need to use the string versions
of these values are enclosed in quotes.
Integers are Parsed as Integers
===============================