mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix yum install with disablerepo (#44735)
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
f89374bf6d
commit
0d5390a919
1 changed files with 2 additions and 1 deletions
|
@ -1384,7 +1384,8 @@ class YumModule(YumDnf):
|
|||
my = self.yum_base()
|
||||
try:
|
||||
if self.disablerepo:
|
||||
my.repos.disableRepo(self.disablerepo)
|
||||
for rid in self.disablerepo:
|
||||
my.repos.disableRepo(rid)
|
||||
current_repos = my.repos.repos.keys()
|
||||
if self.enablerepo:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue