mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix syntax error in jinja context examples
Bad indentation meant it would pass in the pieces of context as part of the **kwargs, rather than as part of the context kwarg.
This commit is contained in:
parent
0c8e0fc569
commit
5971b0e8a8
1 changed files with 2 additions and 2 deletions
|
@ -67,10 +67,10 @@ template, using the ``defaults`` and ``context`` mappings of the
|
|||
- source: salt://motd
|
||||
- template: jinja
|
||||
- defaults:
|
||||
message: 'Foo'
|
||||
message: 'Foo'
|
||||
{% if grains['os'] == 'FreeBSD' %}
|
||||
- context:
|
||||
message: 'Bar'
|
||||
message: 'Bar'
|
||||
{% endif %}
|
||||
|
||||
The template will receive a variable ``message``, which would be accessed in the
|
||||
|
|
Loading…
Add table
Reference in a new issue