mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* fixed calls to list.extend()
* added changelog fragment
* Update changelogs/fragments/2161-pkgutil-list-extend.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit d92d0632eb
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
f4a9c7cc8b
commit
055c8dac9c
2 changed files with 5 additions and 3 deletions
2
changelogs/fragments/2161-pkgutil-list-extend.yml
Normal file
2
changelogs/fragments/2161-pkgutil-list-extend.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- pkgutil - fixed calls to ``list.extend()`` (https://github.com/ansible-collections/community.general/pull/2161).
|
|
@ -130,7 +130,7 @@ def packages_not_latest(module, names, site, update_catalog):
|
|||
cmd.append('-U')
|
||||
cmd.append('-c')
|
||||
if site is not None:
|
||||
cmd.extend('-t', site)
|
||||
cmd.extend(['-t', site])
|
||||
if names != ['*']:
|
||||
cmd.extend(names)
|
||||
rc, out, err = run_command(module, cmd)
|
||||
|
@ -159,7 +159,7 @@ def package_install(module, state, pkgs, site, update_catalog, force):
|
|||
if update_catalog:
|
||||
cmd.append('-U')
|
||||
if site is not None:
|
||||
cmd.extend('-t', site)
|
||||
cmd.extend(['-t', site])
|
||||
if force:
|
||||
cmd.append('-f')
|
||||
cmd.extend(pkgs)
|
||||
|
@ -174,7 +174,7 @@ def package_upgrade(module, pkgs, site, update_catalog, force):
|
|||
if update_catalog:
|
||||
cmd.append('-U')
|
||||
if site is not None:
|
||||
cmd.extend('-t', site)
|
||||
cmd.extend(['-t', site])
|
||||
if force:
|
||||
cmd.append('-f')
|
||||
cmd += pkgs
|
||||
|
|
Loading…
Reference in a new issue