Revert "template.py: Handle purposely raised exceptions in lookup()"

This reverts commit 2fda9bc743.
This commit is contained in:
James Cammarata 2014-07-28 23:25:37 -05:00
parent aee940aaca
commit a9f0f8e975

View file

@ -92,9 +92,6 @@ def lookup(name, *args, **kwargs):
# safely catch run failures per #5059
try:
ran = instance.run(*args, inject=vars, **kwargs)
except errors.AnsibleError:
# Plugin raised this on purpose
raise
except Exception, e:
ran = None
if ran: