81ba992e3e
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:saltstack/salt?expand=0&rev=205
31 lines
887 B
Diff
31 lines
887 B
Diff
From 03ce925098fb96ad2f2f4b7d4c151ef63aede75f Mon Sep 17 00:00:00 2001
|
|
From: Witek Bedyk <wbedyk@suse.com>
|
|
Date: Thu, 19 May 2022 12:52:12 +0200
|
|
Subject: [PATCH] Make sure SaltCacheLoader use correct fileclient (#519)
|
|
|
|
Backported from https://github.com/saltstack/salt/pull/61895
|
|
|
|
Signed-off-by: Witek Bedyk <witold.bedyk@suse.com>
|
|
---
|
|
salt/state.py | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/salt/state.py b/salt/state.py
|
|
index db228228a7..316dcdec63 100644
|
|
--- a/salt/state.py
|
|
+++ b/salt/state.py
|
|
@@ -4170,6 +4170,9 @@ class BaseHighState:
|
|
)
|
|
else:
|
|
try:
|
|
+ # Make sure SaltCacheLoader use correct fileclient
|
|
+ if context is None:
|
|
+ context = {"fileclient": self.client}
|
|
state = compile_template(
|
|
fn_,
|
|
self.state.rend,
|
|
--
|
|
2.37.3
|
|
|
|
|