now captures cache fetch failures

reviewable/pr18780/r1
Brian Coca 10 years ago
parent 44ec0d735e
commit e2dcb5fc9b

@ -619,6 +619,8 @@ def main():
except apt.cache.LockFailedException:
module.fail_json(msg="Failed to lock apt for exclusive operation")
except apt.cache.FetchFailedException:
module.fail_json(msg="Could not fetch updated apt files")
# import module snippets
from ansible.module_utils.basic import *

Loading…
Cancel
Save