osc copypac from project:systemsmanagement:saltstack:testing package:salt revision:308
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:saltstack/salt?expand=0&rev=156
This commit is contained in:
committed by
Git OBS Bridge
parent
deb04ab4ba
commit
51d9b78cf8
27
read-repo-info-without-using-interpolation-bsc-11356.patch
Normal file
27
read-repo-info-without-using-interpolation-bsc-11356.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
From 53f6eb05bb33117483246cdd199c73954c936e19 Mon Sep 17 00:00:00 2001
|
||||
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
|
||||
index a87041aa70..8c1e05c21c 100644
|
||||
--- a/salt/modules/zypperpkg.py
|
||||
+++ b/salt/modules/zypperpkg.py
|
||||
@@ -1043,7 +1043,7 @@ def _get_repo_info(alias, repos_cfg=None, root=None):
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user