Fixed typo in yum package (#72964)
* yum: Fixed typo in failure message: nevra --> envra * Added changelog fragment
This commit is contained in:
parent
e0558ac193
commit
35a2345809
2 changed files with 5 additions and 3 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- yum - Fixed typo in failure message (https://github.com/ansible/ansible/pull/72964).
|
|
@ -1014,7 +1014,7 @@ class YumModule(YumDnf):
|
||||||
# most common case is the pkg is already installed
|
# most common case is the pkg is already installed
|
||||||
envra = self.local_envra(package)
|
envra = self.local_envra(package)
|
||||||
if envra is None:
|
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)
|
installed_pkgs = self.is_installed(repoq, envra)
|
||||||
if installed_pkgs:
|
if installed_pkgs:
|
||||||
res['results'].append('%s providing %s is already installed' % (installed_pkgs[0], package))
|
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)
|
envra = self.local_envra(spec)
|
||||||
|
|
||||||
if envra is None:
|
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
|
# local rpm files can't be updated
|
||||||
if self.is_installed(repoq, envra):
|
if self.is_installed(repoq, envra):
|
||||||
|
@ -1355,7 +1355,7 @@ class YumModule(YumDnf):
|
||||||
envra = self.local_envra(package)
|
envra = self.local_envra(package)
|
||||||
|
|
||||||
if envra is None:
|
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
|
# local rpm files can't be updated
|
||||||
if self.is_installed(repoq, envra):
|
if self.is_installed(repoq, envra):
|
||||||
|
|
Loading…
Reference in a new issue