Commit 4f9c61d6 by Brian Coca

now actually import exception to be usable

parent 4a2276bb
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment