mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47053 from clan/jinja-error
handle jinja error in <module> level
This commit is contained in:
commit
86c7cfef56
1 changed files with 2 additions and 1 deletions
|
@ -205,7 +205,8 @@ def _get_jinja_error_slug(tb_data):
|
|||
return [
|
||||
x
|
||||
for x in tb_data if x[2] in ('top-level template code',
|
||||
'template')
|
||||
'template',
|
||||
'<module>')
|
||||
][-1]
|
||||
except IndexError:
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue