summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2023-04-06 20:19:40 +0200
committerGitHub <noreply@github.com>2023-04-06 13:19:40 -0500
commit8f0ddcba2ccacfe644a567225bf6b3c2595b89a2 (patch)
tree53f0f109b118cf25a1ce1a80c12e583f36d0fa8e
parent856e0312ff2569882599134edd97a483e7ff6200 (diff)
downloadansible-8f0ddcba2ccacfe644a567225bf6b3c2595b89a2.tar.gz
dnf5: fix module/pkg names in the failed respawn msg (#80402) (#80434)
(cherry picked from commit 12ce7d2e4e27dd209ad9a3027b36ff3b4d6f0c10)
-rw-r--r--changelogs/fragments/dnf5-fix-interpreter-fail-msg.yml2
-rw-r--r--lib/ansible/modules/dnf5.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/changelogs/fragments/dnf5-fix-interpreter-fail-msg.yml b/changelogs/fragments/dnf5-fix-interpreter-fail-msg.yml
new file mode 100644
index 0000000000..d6db8c3950
--- /dev/null
+++ b/changelogs/fragments/dnf5-fix-interpreter-fail-msg.yml
@@ -0,0 +1,2 @@
+bugfixes:
+ - dnf5 - fix module and package names in the message following failed module respawn attempt
diff --git a/lib/ansible/modules/dnf5.py b/lib/ansible/modules/dnf5.py
index e25c79142d..6efa2a47fd 100644
--- a/lib/ansible/modules/dnf5.py
+++ b/lib/ansible/modules/dnf5.py
@@ -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
),