mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-25 07:56:38 +00:00
fixed: erroneous logic
This commit is contained in:
committed by
Matt Clay
parent
a6315043ef
commit
abde33c615
@@ -607,8 +607,12 @@ def main():
|
||||
module.fail_json(msg='version number inconsistent with state=latest: %s' % package)
|
||||
|
||||
if p['state'] in ('latest', 'present', 'build-dep'):
|
||||
build_dep = p.get('build-dep', False)
|
||||
upgrade = p.get('latest', False)
|
||||
upgrade = False
|
||||
build_dep = False
|
||||
if p['state'] == 'latest':
|
||||
upgrade = True
|
||||
if p['state'] == 'build-dep':
|
||||
build_dep = True
|
||||
result = install(module, packages, cache, upgrade=upgrade,
|
||||
default_release=p['default_release'],
|
||||
install_recommends=install_recommends,
|
||||
|
||||
Reference in New Issue
Block a user