Skip to content

Commit

Permalink
Document slot parsing improvements in Neon release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
max-arnold committed Dec 21, 2019
1 parent 5fe495a commit 0c36b95
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/topics/releases/neon.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,26 @@ The slot syntax has been updated to support parsing dictionary responses and to
Duration: 1.229 ms
Changes:
Also, slot parsing is now supported inside of nested state data structures (dicts, lists, unless/onlyif args):

.. code-block:: yaml
demo slot parsing for nested elements:
file.managed:
- name: /tmp/slot.txt
- source: salt://slot.j2
- template: jinja
- context:
# Slot inside of the nested context dictionary
variable: __slot__:salt:test.echo(a_value)
- unless:
- fun: file.search
args:
# Slot as unless argument
- __slot__:salt:test.echo(/tmp/slot.txt)
- "DO NOT OVERRIDE"
ignore_if_missing: True
State Changes
=============
Expand Down

0 comments on commit 0c36b95

Please sign in to comment.