From 35a2345809700a8566902ca116c09643d5ca2a88 Mon Sep 17 00:00:00 2001 From: Therry van Neerven Date: Mon, 31 May 2021 10:04:26 +0200 Subject: [PATCH] Fixed typo in yum package (#72964) * yum: Fixed typo in failure message: nevra --> envra * Added changelog fragment --- .../fragments/72964-fixed-typo-in-yum-failure-message.yml | 2 ++ lib/ansible/modules/yum.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/72964-fixed-typo-in-yum-failure-message.yml diff --git a/changelogs/fragments/72964-fixed-typo-in-yum-failure-message.yml b/changelogs/fragments/72964-fixed-typo-in-yum-failure-message.yml new file mode 100644 index 00000000000..2638e7900d8 --- /dev/null +++ b/changelogs/fragments/72964-fixed-typo-in-yum-failure-message.yml @@ -0,0 +1,2 @@ +bugfixes: + - yum - Fixed typo in failure message (https://github.com/ansible/ansible/pull/72964). diff --git a/lib/ansible/modules/yum.py b/lib/ansible/modules/yum.py index 0c1d1728777..3f396f32535 100644 --- a/lib/ansible/modules/yum.py +++ b/lib/ansible/modules/yum.py @@ -1014,7 +1014,7 @@ class YumModule(YumDnf): # most common case is the pkg is already installed envra = self.local_envra(package) if envra is None: - self.module.fail_json(msg="Failed to get nevra information from RPM package: %s" % spec) + self.module.fail_json(msg="Failed to get envra information from RPM package: %s" % spec) installed_pkgs = self.is_installed(repoq, envra) if installed_pkgs: res['results'].append('%s providing %s is already installed' % (installed_pkgs[0], package)) @@ -1338,7 +1338,7 @@ class YumModule(YumDnf): envra = self.local_envra(spec) if envra is None: - self.module.fail_json(msg="Failed to get nevra information from RPM package: %s" % spec) + self.module.fail_json(msg="Failed to get envra information from RPM package: %s" % spec) # local rpm files can't be updated if self.is_installed(repoq, envra): @@ -1355,7 +1355,7 @@ class YumModule(YumDnf): envra = self.local_envra(package) if envra is None: - self.module.fail_json(msg="Failed to get nevra information from RPM package: %s" % spec) + self.module.fail_json(msg="Failed to get envra information from RPM package: %s" % spec) # local rpm files can't be updated if self.is_installed(repoq, envra):