summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormarkafarrell <mark.andrew.farrell@gmail.com>2019-06-25 07:05:18 +1000
committerBrian Coca <bcoca@users.noreply.github.com>2019-06-24 17:05:18 -0400
commit8555b728c3394c3ee9c906f79c7e63bf5ca6f0d0 (patch)
tree1d086568e3671fbd47d4ec619d2202f9873e9201 /lib
parentf749ef5c0ad726613fed839082f3d35272690aa9 (diff)
downloadansible-8555b728c3394c3ee9c906f79c7e63bf5ca6f0d0.tar.gz
also allow None Type for safe eval (#58269)
Diffstat (limited to 'lib')
-rw-r--r--lib/ansible/template/safe_eval.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/template/safe_eval.py b/lib/ansible/template/safe_eval.py
index 4f5b856180..35c70ea03a 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