2020-04-07 14:14:01 +02:00
|
|
|
From b502d73be38aeb509a6c5324cdc9bb94d7220c0a 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)
|
|
|
|
|
|
|
|
---
|
|
|
|
salt/modules/zypperpkg.py | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/salt/modules/zypperpkg.py b/salt/modules/zypperpkg.py
|
2020-04-07 14:14:01 +02:00
|
|
|
index 5f3b6d6855..0c15214e5e 100644
|
2019-11-28 16:41:55 +01:00
|
|
|
--- a/salt/modules/zypperpkg.py
|
|
|
|
+++ b/salt/modules/zypperpkg.py
|
2020-04-07 14:14:01 +02:00
|
|
|
@@ -1045,7 +1045,7 @@ def _get_repo_info(alias, repos_cfg=None, root=None):
|
2019-11-28 16:41:55 +01:00
|
|
|
Get one repo meta-data.
|
|
|
|
'''
|
|
|
|
try:
|
|
|
|
- meta = dict((repos_cfg or _get_configured_repos(root=root)).items(alias))
|
|
|
|
+ meta = dict((repos_cfg or _get_configured_repos(root=root)).items(alias, raw=True))
|
|
|
|
meta['alias'] = alias
|
|
|
|
for key, val in six.iteritems(meta):
|
|
|
|
if val in ['0', '1']:
|
|
|
|
--
|
|
|
|
2.16.4
|
|
|
|
|
|
|
|
|