From 2e171610e06ebcb326ef69ffa89ae46ea1081418 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Thu, 4 Feb 2016 14:19:46 +0100 Subject: Also add 'null' as a possible JSON value --- lib/ansible/template/safe_eval.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/ansible/template/safe_eval.py') diff --git a/lib/ansible/template/safe_eval.py b/lib/ansible/template/safe_eval.py index 174724c7ba..d82373a6fb 100644 --- a/lib/ansible/template/safe_eval.py +++ b/lib/ansible/template/safe_eval.py @@ -45,6 +45,7 @@ def safe_eval(expr, locals={}, include_exceptions=False): # eg. JSON booleans are unknown to python eval() JSON_TYPES = { 'false': False, + 'null': None, 'true': True, } -- cgit v1.2.1