diff options
author | René Moser <mail@renemoser.net> | 2016-11-06 17:21:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-06 17:21:41 +0100 |
commit | be0e6faa7b550e6608ff5ce1c4e91f4cac25dff8 (patch) | |
tree | 1005e0060bde0e9b47e473c666021006922b1ade | |
parent | 931a7133503832702f614cb3427226ef35418301 (diff) | |
download | ansible-modules-core-be0e6faa7b550e6608ff5ce1c4e91f4cac25dff8.tar.gz |
apt: fix changed when cache updated but not pkg (#5487)
-rw-r--r-- | packaging/os/apt.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/packaging/os/apt.py b/packaging/os/apt.py index be8e1016..20306cd6 100644 --- a/packaging/os/apt.py +++ b/packaging/os/apt.py @@ -938,12 +938,6 @@ def main(): retvals['cache_updated'] = updated_cache # Store when the update time was last 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: module.exit_json(**retvals) |