mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
moving the check for req_val outside of the chunks loop.
This commit is contained in:
parent
d6f0ce57b9
commit
616f195546
1 changed files with 2 additions and 2 deletions
|
@ -2787,9 +2787,9 @@ class State:
|
|||
found = False
|
||||
req_key = next(iter(req))
|
||||
req_val = req[req_key]
|
||||
if req_val is None:
|
||||
continue
|
||||
for chunk in chunks:
|
||||
if req_val is None:
|
||||
continue
|
||||
if req_key == "sls":
|
||||
# Allow requisite tracking of entire sls files
|
||||
if fnmatch.fnmatch(chunk["__sls__"], req_val):
|
||||
|
|
Loading…
Add table
Reference in a new issue