mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Revert "Fixes #49362 module dnf: install python3-dnf preferably over python2-dnf. (#49402)" (#49633)
This reverts commit 3247eec97a
.
This commit is contained in:
parent
9434f8608a
commit
198f1e1bea
3 changed files with 3 additions and 51 deletions
|
@ -464,10 +464,10 @@ class DnfModule(YumDnf):
|
|||
|
||||
def _ensure_dnf(self):
|
||||
if not HAS_DNF:
|
||||
if not PY2:
|
||||
package = 'python3-dnf'
|
||||
else:
|
||||
if PY2:
|
||||
package = 'python2-dnf'
|
||||
else:
|
||||
package = 'python3-dnf'
|
||||
|
||||
if self.module.check_mode:
|
||||
self.module.fail_json(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue