mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix SLS in environment variable examples
This commit is contained in:
parent
74ddc71be3
commit
52a9ad1c60
1 changed files with 4 additions and 5 deletions
|
@ -96,9 +96,9 @@ variable in a Salt state.
|
|||
.. code-block:: yaml
|
||||
|
||||
Create a file with contents from an environment variable:
|
||||
file.managed:
|
||||
- name: /tmp/hello
|
||||
- contents: {{ salt['environ.get']('MYENVVAR') }}
|
||||
file.managed:
|
||||
- name: /tmp/hello
|
||||
- contents: {{ salt['environ.get']('MYENVVAR') }}
|
||||
|
||||
Error checking:
|
||||
|
||||
|
@ -115,8 +115,7 @@ Error checking:
|
|||
{% else %}
|
||||
|
||||
Fail - no environment passed in:
|
||||
test:
|
||||
A. fail_without_changes
|
||||
test.fail_without_changes
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue