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:
Erik Johnson 2017-09-22 17:03:53 -05:00
parent 9dba34aa06
commit f73764481b

View file

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