mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
70e8bb3092
commit
fb49e0401e
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ def main():
|
||||||
elif state in ['installed', 'present', 'latest']:
|
elif state in ['installed', 'present', 'latest']:
|
||||||
packages_changed, retvals = package_present(module, name, state == 'latest')
|
packages_changed, retvals = package_present(module, name, state == 'latest')
|
||||||
|
|
||||||
retvals['changed'] = retvals['rc'] == 0 and packages_changed
|
retvals['changed'] = retvals['rc'] == 0 and bool(packages_changed)
|
||||||
|
|
||||||
if module._diff:
|
if module._diff:
|
||||||
set_diff(module, retvals, packages_changed)
|
set_diff(module, retvals, packages_changed)
|
||||||
|
|
Loading…
Reference in a new issue