Skip to content

Commit f52fbbd

Browse files
committed
Avoid explicit reading of /etc/salt/minion (bsc#1220357)
1 parent cf6daed commit f52fbbd

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From bbdb56932845dceb47332a4c967c13a9a78b88bc Mon Sep 17 00:00:00 2001
2+
From: Victor Zhestkov <[email protected]>
3+
Date: Wed, 25 Sep 2024 14:08:20 +0300
4+
Subject: [PATCH] Avoid explicit reading of /etc/salt/minion
5+
(bsc#1220357)
6+
7+
Co-authored-by: Daniel A. Wozniak <[email protected]>
8+
---
9+
salt/utils/azurearm.py | 2 --
10+
1 file changed, 2 deletions(-)
11+
12+
diff --git a/salt/utils/azurearm.py b/salt/utils/azurearm.py
13+
index 276cbb66b3..9ae128273c 100644
14+
--- a/salt/utils/azurearm.py
15+
+++ b/salt/utils/azurearm.py
16+
@@ -47,8 +47,6 @@ try:
17+
except ImportError:
18+
HAS_AZURE = False
19+
20+
-__opts__ = salt.config.minion_config("/etc/salt/minion")
21+
-__salt__ = salt.loader.minion_mods(__opts__)
22+
23+
log = logging.getLogger(__name__)
24+
25+
--
26+
2.46.1
27+

salt/salt.spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,8 @@ Patch139: use-cachedir-for-extension_modules-in-salt-call-bsc-.patch
444444
Patch140: revert-the-change-making-reactor-less-blocking-bsc-1.patch
445445
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/66649
446446
Patch141: allow-namedloadercontexts-to-be-returned-from-loader.patch
447+
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/commit/d54407ba6dc664e5e5f3f613e27ae24f828c9648
448+
Patch142: avoid-explicit-reading-of-etc-salt-minion-bsc-122035.patch
447449

448450
### IMPORTANT: The line below is used as a snippet marker. Do not touch it.
449451
### SALT PATCHES LIST END

0 commit comments

Comments
 (0)