mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Catch all exceptions coming from lookup plugins
Fixes using $TEMPLATE() and hostvars in a task without a name, among other things.
This commit is contained in:
parent
b1a4fab7e1
commit
bcf7a2c53a
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ def _varFind(basedir, text, vars, lookup_fatal, depth, expand_lists):
|
|||
replacement = instance.run(args, inject=vars)
|
||||
if expand_lists:
|
||||
replacement = u",".join([unicode(x) for x in replacement])
|
||||
except errors.AnsibleError:
|
||||
except:
|
||||
if not lookup_fatal:
|
||||
replacement = None
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue