mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Revert "template.py: Handle purposely raised exceptions in lookup()"
This reverts commit 2fda9bc743.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user