mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Minor documentation correction on 'context' & 'defaults'
To ensure the YAML structure correctly assigns 'context' & 'defaults' as dicts the elements under context & defaults need an extra set of indents. Example: - example: test: 1 Compiles to: [{'example': None, 'test': 1}] While: - example: test: 1 Correctly compiles to: [{'example': {'test': 1}}]
This commit is contained in:
parent
18569c45c6
commit
1cffa188e5
2 changed files with 6 additions and 6 deletions
|
@ -6800,10 +6800,10 @@ makes use of the jinja templating system would look like this:
|
|||
\- mode: 644
|
||||
\- template: jinja
|
||||
\- context:
|
||||
custom_var: "override"
|
||||
custom_var: "override"
|
||||
\- defaults:
|
||||
custom_var: "default value"
|
||||
other_var: 123
|
||||
custom_var: "default value"
|
||||
other_var: 123
|
||||
.ft P
|
||||
.fi
|
||||
.sp
|
||||
|
|
|
@ -22,10 +22,10 @@ makes use of the jinja templating system would look like this:
|
|||
- mode: 644
|
||||
- template: jinja
|
||||
- context:
|
||||
custom_var: "override"
|
||||
custom_var: "override"
|
||||
- defaults:
|
||||
custom_var: "default value"
|
||||
other_var: 123
|
||||
custom_var: "default value"
|
||||
other_var: 123
|
||||
|
||||
Directories can be managed via the ``directory`` function. This function can
|
||||
create and enforce the permissions on a directory. A directory statement will
|
||||
|
|
Loading…
Add table
Reference in a new issue