mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #33651 from cachedout/issue_33614
Restore grains context to renderers
This commit is contained in:
commit
a8d9221631
1 changed files with 2 additions and 1 deletions
|
@ -565,7 +565,8 @@ def render(opts, functions, states=None):
|
|||
'''
|
||||
Returns the render modules
|
||||
'''
|
||||
pack = {'__salt__': functions}
|
||||
pack = {'__salt__': functions,
|
||||
'__grains__': opts.get('grains', {})}
|
||||
if states:
|
||||
pack['__states__'] = states
|
||||
ret = LazyLoader(
|
||||
|
|
Loading…
Add table
Reference in a new issue