mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixed: missing check for upgrade flag
This commit is contained in:
parent
807b168590
commit
a6315043ef
1 changed files with 2 additions and 1 deletions
|
@ -608,7 +608,8 @@ def main():
|
|||
|
||||
if p['state'] in ('latest', 'present', 'build-dep'):
|
||||
build_dep = p.get('build-dep', False)
|
||||
result = install(module, packages, cache, upgrade=True,
|
||||
upgrade = p.get('latest', False)
|
||||
result = install(module, packages, cache, upgrade=upgrade,
|
||||
default_release=p['default_release'],
|
||||
install_recommends=install_recommends,
|
||||
force=force_yes, dpkg_options=dpkg_options,
|
||||
|
|
Loading…
Reference in a new issue