Add note about pillar.get() vs salt['pillar.get']() in templates, Fix #7566

This commit is contained in:
Colton Myers 2013-10-16 15:43:03 -06:00
parent 36f70e3614
commit c4dde69a2f

View File

@ -211,6 +211,16 @@ back if the value is not available:
This makes handling nested structures much easier. This makes handling nested structures much easier.
.. note:: ``pillar.get()`` vs ``salt['pillar.get']()``
It should be noted that within templating, the ``pillar`` variable is just
a dictionary. This means that calling ``pillar.get()`` inside of a
template will just use the default dictionary ``.get()`` function which
does not include the extra ``:`` delimeter functionality. It must be
called using the above syntax (``salt['pillar.get']('foo:bar:baz',
'qux')``) to get the salt function, instead of the default dictionary
behavior.
Refreshing Pillar Data Refreshing Pillar Data
====================== ======================