dnf5: fix module/pkg names in the failed respawn msg (#80402) (#80434)

(cherry picked from commit 12ce7d2e4e)
pull/80463/head
Martin Krizek 3 years ago committed by GitHub
parent 856e0312ff
commit 8f0ddcba2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- dnf5 - fix module and package names in the message following failed module respawn attempt

@ -445,8 +445,8 @@ class Dnf5Module(YumDnf):
# done all we can do, something is just broken (auto-install isn't useful anymore with respawn, so it was removed)
self.module.fail_json(
msg="Could not import the dnf python module using {0} ({1}). "
"Please install `python3-dnf` or `python2-dnf` package or ensure you have specified the "
msg="Could not import the libdnf5 python module using {0} ({1}). "
"Please install python3-libdnf5 package or ensure you have specified the "
"correct ansible_python_interpreter. (attempted {2})".format(
sys.executable, sys.version.replace("\n", ""), system_interpreters
),

Loading…
Cancel
Save