Merge pull request #16113 from cachedout/issue_15693

Error handling in broken SLS file.
This commit is contained in:
Thomas S Hatch 2014-09-24 20:11:58 -06:00
commit b043c150ab

View File

@ -2506,7 +2506,10 @@ class BaseHighState(object):
', '.join(resolved_envs))
log.critical(msg)
errors.append(msg)
self._handle_iorder(state)
try:
self._handle_iorder(state)
except TypeError:
log.critical('Could not render SLS {0}. Syntax error detected.'.format(sls))
else:
state = {}
return state, errors