Skip to content

Commit

Permalink
Make sure SaltCacheLoader use correct fileclient (#519)
Browse files Browse the repository at this point in the history
Backported from saltstack/salt#61895

Signed-off-by: Witek Bedyk <[email protected]>
  • Loading branch information
witekest authored and meaksh committed Dec 29, 2022
1 parent 27d0123 commit 6c23160
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -4170,6 +4170,9 @@ def render_state(self, sls, saltenv, mods, matches, local=False, context=None):
)
else:
try:
# Make sure SaltCacheLoader use correct fileclient
if context is None:
context = {"fileclient": self.client}
state = compile_template(
fn_,
self.state.rend,
Expand Down

0 comments on commit 6c23160

Please sign in to comment.