mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add missing support for use/use_in requisites to state.sls_id
Because requisite resolution doesn't happen until we run call_high, and state.sls_id doesn't run call_high (but rather calls a single low chunk from the compiled low chunks), the use/use_in requisites are ignored. This fixes that oversight by resolving requisites in state.sls_id before we compile the high data.
This commit is contained in:
parent
9dba34aa06
commit
f73764481b
1 changed files with 3 additions and 0 deletions
|
@ -1303,6 +1303,9 @@ def sls_id(id_, mods, test=None, queue=False, **kwargs):
|
|||
finally:
|
||||
st_.pop_active()
|
||||
errors += st_.state.verify_high(high_)
|
||||
# Apply requisites to high data
|
||||
high_, req_in_errors = st_.state.requisite_in(high_)
|
||||
errors.extend(req_in_errors)
|
||||
if errors:
|
||||
__context__['retcode'] = 1
|
||||
return errors
|
||||
|
|
Loading…
Add table
Reference in a new issue