now actually import exception to be usable
This commit is contained in:
parent
d3f6071d66
commit
2a47bb5b7a
1 changed files with 1 additions and 1 deletions
2
apt
2
apt
|
@ -263,7 +263,7 @@ def main():
|
|||
elif p['state'] in [ 'removed', 'absent' ]:
|
||||
remove(module, packages, cache, p['purge'])
|
||||
|
||||
except LockFailedException:
|
||||
except apt.cache.LockFailedException:
|
||||
module.fail_json(msg="Failed to lock apt for exclusive operation")
|
||||
|
||||
# this is magic, see lib/ansible/module_common.py
|
||||
|
|
Loading…
Add table
Reference in a new issue