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 Apr 10, 2023
1 parent 6e5f721 commit 57e4e81
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 @@ -4291,6 +4291,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 57e4e81

Please sign in to comment.