From 8555b728c3394c3ee9c906f79c7e63bf5ca6f0d0 Mon Sep 17 00:00:00 2001 From: markafarrell Date: Tue, 25 Jun 2019 07:05:18 +1000 Subject: [PATCH] also allow None Type for safe eval (#58269) --- lib/ansible/template/safe_eval.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/template/safe_eval.py b/lib/ansible/template/safe_eval.py index 4f5b856180a..35c70ea03a9 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