mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +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))
|
', '.join(resolved_envs))
|
||||||
log.critical(msg)
|
log.critical(msg)
|
||||||
errors.append(msg)
|
errors.append(msg)
|
||||||
|
try:
|
||||||
self._handle_iorder(state)
|
self._handle_iorder(state)
|
||||||
|
except TypeError:
|
||||||
|
log.critical('Could not render SLS {0}. Syntax error detected.'.format(sls))
|
||||||
else:
|
else:
|
||||||
state = {}
|
state = {}
|
||||||
return state, errors
|
return state, errors
|
||||||
|
Loading…
Reference in New Issue
Block a user