mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge pull request #5175 from basepi/context5161
Make explicit context overwrite kwargs for templating, Fix #5161
This commit is contained in:
commit
0c8e0fc569
@ -38,7 +38,9 @@ def wrap_tmpl_func(render_str):
|
|||||||
context=None, tmplpath=None, **kws):
|
context=None, tmplpath=None, **kws):
|
||||||
if context is None:
|
if context is None:
|
||||||
context = {}
|
context = {}
|
||||||
context.update(kws)
|
# We want explicit context to overwrite the **kws
|
||||||
|
kws.update(context)
|
||||||
|
context = kws
|
||||||
assert 'opts' in context
|
assert 'opts' in context
|
||||||
assert 'env' in context
|
assert 'env' in context
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user