mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 08:03:05 +02:00
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- dnf - properly set gpg check options on enabled repositories according to the ``disable_gpg_check`` option (https://github.com/ansible/ansible/issues/80110)
|
||||
@@ -723,6 +723,11 @@ class DnfModule(YumDnf):
|
||||
for repo in repos.get_matching(repo_pattern):
|
||||
repo.enable()
|
||||
|
||||
for repo in base.repos.iter_enabled():
|
||||
if self.disable_gpg_check:
|
||||
repo.gpgcheck = False
|
||||
repo.repo_gpgcheck = False
|
||||
|
||||
def _base(self, conf_file, disable_gpg_check, disablerepo, enablerepo, installroot, sslverify):
|
||||
"""Return a fully configured dnf Base object."""
|
||||
base = dnf.Base()
|
||||
|
||||
Reference in New Issue
Block a user