mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Renamed previous pkgs variable to installed_pkgs as spotted by @strahinja
This commit is contained in:
parent
dad26d70fa
commit
3a4d8f22a6
1 changed files with 3 additions and 3 deletions
|
@ -541,9 +541,9 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
|
||||||
# short circuit all the bs - and search for it as a pkg in is_installed
|
# short circuit all the bs - and search for it as a pkg in is_installed
|
||||||
# if you find it then we're done
|
# if you find it then we're done
|
||||||
if not set(['*','?']).intersection(set(spec)):
|
if not set(['*','?']).intersection(set(spec)):
|
||||||
pkgs = is_installed(module, repoq, spec, conf_file, en_repos=en_repos, dis_repos=dis_repos, is_pkg=True)
|
installed_pkgs = is_installed(module, repoq, spec, conf_file, en_repos=en_repos, dis_repos=dis_repos, is_pkg=True)
|
||||||
if pkgs:
|
if installed_pkgs:
|
||||||
res['results'].append('%s providing %s is already installed' % (pkgs[0], spec))
|
res['results'].append('%s providing %s is already installed' % (installed_pkgs[0], spec))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# look up what pkgs provide this
|
# look up what pkgs provide this
|
||||||
|
|
Loading…
Reference in a new issue