Merge pull request #12413 from jacksontj/job_cache

Make sure to pack the __pillar__ into the renderers
This commit is contained in:
Thomas S Hatch 2014-04-30 12:16:41 -06:00
commit aa8cee3ce3

View File

@ -321,7 +321,10 @@ def render(opts, functions, states=None):
opts, 'renderers', 'render', ext_type_dirs='render_dirs'
)
pack = [{'name': '__salt__',
'value': functions}]
'value': functions},
{'name': '__pillar__',
'value': opts.get('pillar', {})}]
if states:
pack.append({'name': '__states__', 'value': states})
rend = LazyFilterLoader(load, 'render', pack=pack)