mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Handle state delcarations not formed as a list, Fix #6544
This commit is contained in:
parent
3bd5156a27
commit
130bab885a
@ -1811,6 +1811,10 @@ class BaseHighState(object):
|
||||
'laid out as a dict').format(env)
|
||||
errors.append(err)
|
||||
for slsmods in matches.values():
|
||||
if not isinstance(slsmods, list):
|
||||
errors.append('Malformed topfile (state declarations not '
|
||||
'formed as a list)')
|
||||
continue
|
||||
for slsmod in slsmods:
|
||||
if isinstance(slsmod, dict):
|
||||
# This value is a match option
|
||||
|
Loading…
Reference in New Issue
Block a user