now actually import exception to be usable

reviewable/pr18780/r1
Brian Coca 12 years ago
parent d3f6071d66
commit 2a47bb5b7a

2
apt

@ -263,7 +263,7 @@ def main():
elif p['state'] in [ 'removed', 'absent' ]: elif p['state'] in [ 'removed', 'absent' ]:
remove(module, packages, cache, p['purge']) remove(module, packages, cache, p['purge'])
except 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")
# this is magic, see lib/ansible/module_common.py # this is magic, see lib/ansible/module_common.py

Loading…
Cancel
Save