mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix incorrect reactor target
The documentation has an incorrect reactor target The current documentation will cause the following error ``` jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'data' ```
This commit is contained in:
parent
ad68e6b99d
commit
639ba5613e
1 changed files with 1 additions and 7 deletions
|
@ -246,7 +246,7 @@ Add the following to ``/srv/reactor/revert.sls``:
|
|||
|
||||
revert-file:
|
||||
local.state.apply:
|
||||
- tgt: {{ data['data']['id'] }}
|
||||
- tgt: {{ data['id'] }}
|
||||
- arg:
|
||||
- maintain_important_file
|
||||
|
||||
|
@ -257,12 +257,6 @@ Add the following to ``/srv/reactor/revert.sls``:
|
|||
to modify the watched file, it is important to ensure the state applied is
|
||||
also :term:`idempotent <Idempotent>`.
|
||||
|
||||
.. note::
|
||||
|
||||
The expression ``{{ data['data']['id'] }}`` :ref:`is correct
|
||||
<beacons-and-reactors>` as it matches the event structure :ref:`shown above
|
||||
<beacon-event-bus>`.
|
||||
|
||||
State SLS
|
||||
`````````
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue