Merge pull request #646 from bcoca/apt_fix_fetch_exception
now captures cache fetch failures
This commit is contained in:
commit
e8a0ed31db
1 changed files with 2 additions and 0 deletions
|
@ -619,6 +619,8 @@ def main():
|
||||||
|
|
||||||
except apt.cache.LockFailedException:
|
except apt.cache.LockFailedException:
|
||||||
module.fail_json(msg="Failed to lock apt for exclusive operation")
|
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
|
# import module snippets
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
|
|
Loading…
Reference in a new issue