now actually import exception to be usable

pull/2391/head
Brian Coca 12 years ago
parent 4a2276bb4b
commit 4f9c61d673

@ -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…
Cancel
Save