Commit a9f0f8e9 by James Cammarata

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

This reverts commit 2fda9bc7.
parent aee940aa
...@@ -92,9 +92,6 @@ def lookup(name, *args, **kwargs): ...@@ -92,9 +92,6 @@ def lookup(name, *args, **kwargs):
# safely catch run failures per #5059 # safely catch run failures per #5059
try: try:
ran = instance.run(*args, inject=vars, **kwargs) ran = instance.run(*args, inject=vars, **kwargs)
except errors.AnsibleError:
# Plugin raised this on purpose
raise
except Exception, e: except Exception, e:
ran = None ran = None
if ran: if ran:
......
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