summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Moser <mail@renemoser.net>2016-11-06 17:21:41 +0100
committerRene Moser <mail@renemoser.net>2016-11-06 17:24:30 +0100
commit20cb0da7dcaa69bccf1ed80290f02b161ef132d7 (patch)
treefdb31c2b5d6ab030639ab2d9b868f41055e34fd3
parent203fcad34723388f6610cbd7f1ac1986a5108d81 (diff)
downloadansible-modules-core-20cb0da7dcaa69bccf1ed80290f02b161ef132d7.tar.gz
apt: fix changed when cache updated but not pkg (#5487)
-rw-r--r--packaging/os/apt.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/packaging/os/apt.py b/packaging/os/apt.py
index 5b62721c..8c214c14 100644
--- a/packaging/os/apt.py
+++ b/packaging/os/apt.py
@@ -885,12 +885,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)