mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
apt: fix changed when cache updated but not pkg (#5487)
This commit is contained in:
parent
08ce50c2b3
commit
447842c524
1 changed files with 0 additions and 6 deletions
|
@ -938,12 +938,6 @@ def main():
|
||||||
retvals['cache_updated'] = updated_cache
|
retvals['cache_updated'] = updated_cache
|
||||||
# Store when the update time was last
|
# Store when the update time was last
|
||||||
retvals['cache_update_time'] = updated_cache_time
|
retvals['cache_update_time'] = updated_cache_time
|
||||||
# If the cache was updated and the general state change was set to
|
|
||||||
# False make sure that the change in cache state is accurately
|
|
||||||
# updated by setting the general changed state to the same as
|
|
||||||
# the cache state.
|
|
||||||
if updated_cache and not retvals['changed']:
|
|
||||||
retvals['changed'] = updated_cache
|
|
||||||
|
|
||||||
if success:
|
if success:
|
||||||
module.exit_json(**retvals)
|
module.exit_json(**retvals)
|
||||||
|
|
Loading…
Reference in a new issue