diff options
author | markafarrell <mark.andrew.farrell@gmail.com> | 2019-06-25 07:05:18 +1000 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2019-06-25 12:18:21 -0700 |
commit | 37284b05815722b90fda4aeab0fd3e1ade200420 (patch) | |
tree | f5cab9ca633fe616bea3e005c4f1b757c37f1062 | |
parent | f71a7b9fbdd0b072e9cfb08fa0d6b1ab0685d3cf (diff) | |
download | ansible-37284b05815722b90fda4aeab0fd3e1ade200420.tar.gz |
[stable-2.6] also allow None Type for safe eval (#58269)
(cherry picked from commit 8555b72)
Co-authored-by: markafarrell <mark.andrew.farrell@gmail.com>
-rw-r--r-- | lib/ansible/template/safe_eval.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/template/safe_eval.py b/lib/ansible/template/safe_eval.py index 32fc22cea8..802ca13669 100644 --- a/lib/ansible/template/safe_eval.py +++ b/lib/ansible/template/safe_eval.py @@ -50,6 +50,7 @@ def safe_eval(expr, locals=None, include_exceptions=False): # also add back some builtins we do need 'True': True, 'False': False, + 'None': None } # this is the whitelist of AST nodes we are going to |