If it's not a dict, it should not be treated like one.

This commit is contained in:
Pedro Algarvio 2012-09-18 00:57:05 +01:00
parent a358885829
commit 33c77d1723

View File

@ -361,7 +361,7 @@ class State(object):
errors.append(err)
if not isinstance(body, dict):
err = ('The type {0} in {1} is not formated as a dictionary'
.format(name, body['__sls__']))
.format(name, body))
errors.append(err)
continue
for state in body: