check type of matches in render_state before iterating

Fixes #26112.
This commit is contained in:
Justin Findlay 2015-08-10 10:47:15 -06:00
parent c80299b918
commit 5e46ea4441

View file

@ -2591,6 +2591,8 @@ class BaseHighState(object):
inc_sls = '.'.join(p_comps[:-1]) + inc_sls
if env_key != xenv_key:
if matches is None:
matches = []
# Resolve inc_sls in the specified environment
if env_key in matches or fnmatch.filter(self.avail[env_key], inc_sls):
resolved_envs = [env_key]