fix yum install with disablerepo (#44735)

Signed-off-by: Adam Miller <admiller@redhat.com>
pull/44736/head
Adam Miller 6 years ago committed by ansibot
parent f89374bf6d
commit 0d5390a919

@ -1384,7 +1384,8 @@ class YumModule(YumDnf):
my = self.yum_base() my = self.yum_base()
try: try:
if self.disablerepo: if self.disablerepo:
my.repos.disableRepo(self.disablerepo) for rid in self.disablerepo:
my.repos.disableRepo(rid)
current_repos = my.repos.repos.keys() current_repos = my.repos.repos.keys()
if self.enablerepo: if self.enablerepo:
try: try:

Loading…
Cancel
Save