Restore grains context to renderers

We were missing the proper grains dictionary in the renderer context. This restores it.

Closes #33614
This commit is contained in:
Mike Place 2016-05-31 14:53:32 -06:00
parent b379dc57fd
commit 4e18ff7000

View file

@ -371,7 +371,7 @@ def render(template_file, saltenv='base', sls='', argline='',
tmp_data = salt.utils.templates.JINJA(template_file,
to_str=True,
salt=_split_module_dicts(),
grains=__grains__,
grains=__opts__['grains'],
opts=__opts__,
pillar=__pillar__,
saltenv=saltenv,