mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #17157 from basepi/prereqdocs17086
We evaluate a prereq, we don't call it. Fixes #17086
This commit is contained in:
commit
5c93de6ea1
@ -202,11 +202,11 @@ a state that has not yet been executed. The state containing the ``prereq``
|
|||||||
requisite is defined as the pre-requiring state. The state specified in the
|
requisite is defined as the pre-requiring state. The state specified in the
|
||||||
``prereq`` statement is defined as the pre-required state.
|
``prereq`` statement is defined as the pre-required state.
|
||||||
|
|
||||||
When ``prereq`` is called, the pre-required state reports if it expects to
|
When a ``prereq`` requisite is evaluated, the pre-required state reports if it
|
||||||
have any changes. It does this by running the pre-required single state as a
|
expects to have any changes. It does this by running the pre-required single
|
||||||
test-run by enabling ``test=True``. This test-run will return a dictionary
|
state as a test-run by enabling ``test=True``. This test-run will return a
|
||||||
containing a key named "changes". (See the ``watch`` section above for
|
dictionary containing a key named "changes". (See the ``watch`` section above
|
||||||
examples of "changes" dictionaries.)
|
for examples of "changes" dictionaries.)
|
||||||
|
|
||||||
If the "changes" key contains a populated dictionary, it means that the
|
If the "changes" key contains a populated dictionary, it means that the
|
||||||
pre-required state expects changes to occur when the state is actually
|
pre-required state expects changes to occur when the state is actually
|
||||||
|
Loading…
Reference in New Issue
Block a user