Handle state delcarations not formed as a list, Fix #6544

This commit is contained in:
Colton Myers 2013-08-07 15:34:55 -06:00
parent 3bd5156a27
commit 130bab885a

View File

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