diff options
author | Dag Wieers <dag@wieers.com> | 2016-02-04 14:19:46 +0100 |
---|---|---|
committer | Dag Wieers <dag@wieers.com> | 2016-02-04 14:19:46 +0100 |
commit | 2e171610e06ebcb326ef69ffa89ae46ea1081418 (patch) | |
tree | 2914572b94d8040b77906d4adc75ba0b04b2b5f1 /lib/ansible/template/safe_eval.py | |
parent | dc48d27dd2c49e95a719d7f7596f0b68e0ddef7f (diff) | |
download | ansible-2e171610e06ebcb326ef69ffa89ae46ea1081418.tar.gz |
Also add 'null' as a possible JSON value
Diffstat (limited to 'lib/ansible/template/safe_eval.py')
-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 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, } |