mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Log the exception rather than ignoring it, Fix #5160
This commit is contained in:
parent
ee113486b5
commit
e3df459719
@ -144,14 +144,15 @@ def render(input, env='', sls='', argline='', **kws):
|
||||
|
||||
rename_state_ids(data, sls)
|
||||
|
||||
# We must extract no matter what so extending a stateconf sls file works!
|
||||
# We must extract no matter what so extending a stateconf sls file
|
||||
# works!
|
||||
extract_state_confs(data)
|
||||
except SaltRenderError:
|
||||
raise
|
||||
except Exception as err:
|
||||
log.exception(
|
||||
'Error found while pre-processing the salt file, '
|
||||
'{0}.\n'.format(sls)
|
||||
'Error found while pre-processing the salt file '
|
||||
'{0}:\n{1}'.format(sls, err)
|
||||
)
|
||||
from salt.state import State
|
||||
state = State(__opts__)
|
||||
|
Loading…
Reference in New Issue
Block a user