From 9406fbe4a2e7f9d7e80bd2e8f5a229dfcb03d6b0 Mon Sep 17 00:00:00 2001 From: markafarrell Date: Tue, 25 Jun 2019 07:05:18 +1000 Subject: [PATCH] [stable-2.8] also allow None Type for safe eval (#58269) (cherry picked from commit 8555b72) Co-authored-by: markafarrell --- 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