diff options
author | Dag Wieers <dag@wieers.com> | 2016-09-09 15:33:23 +0200 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2016-09-09 09:33:23 -0400 |
commit | d52a9cee46553dc461a0bc69bb0459d5f2eb6765 (patch) | |
tree | 056d7ddd10ddafa73f2dcc77795a43f1af55817a /lib/ansible/template | |
parent | eefe359d6b0d29b5ead94c560c7a6475235899e2 (diff) | |
download | ansible-d52a9cee46553dc461a0bc69bb0459d5f2eb6765.tar.gz |
Support late evaluation, suppress warnings on SyntaxError (#17462)
See #14304 comments (https://github.com/ansible/ansible/pull/14304#issuecomment-245453209) for more information.
Diffstat (limited to 'lib/ansible/template')
-rw-r--r-- | lib/ansible/template/safe_eval.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ansible/template/safe_eval.py b/lib/ansible/template/safe_eval.py index 845216b621..19c61c9ea7 100644 --- a/lib/ansible/template/safe_eval.py +++ b/lib/ansible/template/safe_eval.py @@ -137,9 +137,8 @@ def safe_eval(expr, locals={}, include_exceptions=False): else: return result except SyntaxError as e: - display.warning('SyntaxError in safe_eval() on expr: %s (%s)' % (expr, e)) # special handling for syntax errors, we just return - # the expression string back as-is + # the expression string back as-is to support late evaluation if include_exceptions: return (expr, None) return expr |