2023-01-09 13:52:13 +01:00
|
|
|
From c27ac9afb6bd13fc26fc440e0a097bbb82cbb640 Mon Sep 17 00:00:00 2001
|
2019-11-28 16:41:55 +01:00
|
|
|
From: Mihai Dinca <mdinca@suse.de>
|
|
|
|
Date: Thu, 7 Nov 2019 15:11:49 +0100
|
|
|
|
Subject: [PATCH] Read repo info without using interpolation
|
|
|
|
(bsc#1135656)
|
|
|
|
|
|
|
|
---
|
2021-01-08 13:41:50 +01:00
|
|
|
salt/modules/zypperpkg.py | 4 +++-
|
|
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
2019-11-28 16:41:55 +01:00
|
|
|
|
|
|
|
diff --git a/salt/modules/zypperpkg.py b/salt/modules/zypperpkg.py
|
2023-01-09 13:52:13 +01:00
|
|
|
index dd836b7ad0..32e22ce9a8 100644
|
2019-11-28 16:41:55 +01:00
|
|
|
--- a/salt/modules/zypperpkg.py
|
|
|
|
+++ b/salt/modules/zypperpkg.py
|
2023-01-09 13:52:13 +01:00
|
|
|
@@ -1121,7 +1121,9 @@ def _get_repo_info(alias, repos_cfg=None, root=None):
|
2019-11-28 16:41:55 +01:00
|
|
|
Get one repo meta-data.
|
2021-01-08 13:41:50 +01:00
|
|
|
"""
|
2019-11-28 16:41:55 +01:00
|
|
|
try:
|
|
|
|
- meta = dict((repos_cfg or _get_configured_repos(root=root)).items(alias))
|
2021-01-08 13:41:50 +01:00
|
|
|
+ meta = dict(
|
|
|
|
+ (repos_cfg or _get_configured_repos(root=root)).items(alias, raw=True)
|
|
|
|
+ )
|
|
|
|
meta["alias"] = alias
|
|
|
|
for key, val in meta.items():
|
|
|
|
if val in ["0", "1"]:
|
2019-11-28 16:41:55 +01:00
|
|
|
--
|
2023-01-09 13:52:13 +01:00
|
|
|
2.37.3
|
2019-11-28 16:41:55 +01:00
|
|
|
|
|
|
|
|