mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
now captures cache fetch failures
This commit is contained in:
parent
f9a6ec95b0
commit
65d3b167e6
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue