From cd5ae17e8df2cf8975b545008b7a7376e49b9176 Mon Sep 17 00:00:00 2001 From: frenz Date: Thu, 11 Aug 2016 18:13:53 +0300 Subject: [PATCH] fxd missed proper grains dictionary --- salt/modules/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/file.py b/salt/modules/file.py index de2e3ee40c..761a0c694b 100644 --- a/salt/modules/file.py +++ b/salt/modules/file.py @@ -3431,7 +3431,7 @@ def apply_template_on_contents( to_str=True, context=context_dict, saltenv=saltenv, - grains=__grains__, + grains=__opts__['grains'], pillar=__pillar__, salt=__salt__, opts=__opts__)['data'].encode('utf-8') @@ -3615,7 +3615,7 @@ def get_managed( context=context_dict, salt=__salt__, pillar=__pillar__, - grains=__grains__, + grains=__opts__['grains'], opts=__opts__, **kwargs) else: