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

This reverts commit 2fda9bc743.
pull/8322/merge
James Cammarata 10 years ago
parent aee940aaca
commit a9f0f8e975

@ -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:

Loading…
Cancel
Save