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 May 19, 2022
1 parent 0c4a712 commit cdd5eda
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 @@ -4061,6 +4061,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 cdd5eda

Please sign in to comment.