moving the check for req_val outside of the chunks loop.

This commit is contained in:
Gareth J. Greenaway 2022-08-24 17:26:57 -07:00 committed by Megan Wilhite
parent d6f0ce57b9
commit 616f195546

View file

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