From d282de5c59e27c17bd5afb207c4eeaa754993368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= Date: Tue, 22 May 2018 12:04:48 +0100 Subject: [PATCH] Prevent zypper from parsing repo configuration from not .repo files --- salt/modules/zypper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py index 06f8335c18..05ba3d86c9 100644 --- a/salt/modules/zypper.py +++ b/salt/modules/zypper.py @@ -862,7 +862,7 @@ def _get_configured_repos(): ''' repos_cfg = configparser.ConfigParser() - repos_cfg.read([REPOS + '/' + fname for fname in os.listdir(REPOS)]) + repos_cfg.read([REPOS + '/' + fname for fname in os.listdir(REPOS) if fname.endswith(".repo")]) return repos_cfg -- 2.13.7