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:
joshmcorreia 2023-02-10 10:33:14 -08:00 committed by Pedro Algarvio
parent ad68e6b99d
commit 639ba5613e

View file

@ -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
`````````