If failed lookups are fatal, re-raise the exception

Fixes #1938.
pull/1939/head
Daniel Hokka Zakrisson 12 years ago
parent e166f71fcc
commit b79960e13b

@ -170,6 +170,8 @@ def _varFind(basedir, text, vars, lookup_fatal, depth=0):
except errors.AnsibleError: except errors.AnsibleError:
if not lookup_fatal: if not lookup_fatal:
replacement = None replacement = None
else:
raise
else: else:
replacement = None replacement = None
return {'replacement': replacement, 'start': start, 'end': end} return {'replacement': replacement, 'start': start, 'end': end}

Loading…
Cancel
Save