mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47765 from meaksh/2017.7-fix-zypper-error-reading-repo
Prevent zypper from parsing repo configuration from not .repo files
This commit is contained in:
commit
46618d2ce7
1 changed files with 1 additions and 1 deletions
|
@ -829,7 +829,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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue