mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix formulas map.jinja example when using default values
Fixed syntax error and replaced `default` kwarg with `base`. The previous form would lead e.g. for RedHat to `Rendering SLS '...' failed: Jinja variable 'dict object' has no attribute 'server'`.
This commit is contained in:
parent
2d665e2a3f
commit
77ebe74fae
1 changed files with 2 additions and 2 deletions
|
@ -798,7 +798,7 @@ Collecting common values
|
|||
Common values can be collected into a *base* dictionary. This
|
||||
minimizes repetition of identical values in each of the
|
||||
``lookup_dict`` sub-dictionaries. Now only the values that are
|
||||
different from the base must be specified of the alternates:
|
||||
different from the base must be specified by the alternates:
|
||||
|
||||
:file:`map.jinja`:
|
||||
|
||||
|
@ -826,7 +826,7 @@ different from the base must be specified of the alternates:
|
|||
'python': 'dev-python/mysql-python',
|
||||
},
|
||||
},
|
||||
merge=salt['pillar.get']('mysql:lookup', default='default') %}
|
||||
merge=salt['pillar.get']('mysql:lookup'), base='default') %}
|
||||
|
||||
|
||||
Overriding values in the lookup table
|
||||
|
|
Loading…
Add table
Reference in a new issue