mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #16113 from cachedout/issue_15693
Error handling in broken SLS file.
This commit is contained in:
commit
b043c150ab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user