From 4833c2fdf06352835742cacac12043a1e5f0904d Mon Sep 17 00:00:00 2001 From: James Tanner Date: Wed, 23 Oct 2013 15:54:36 -0400 Subject: [PATCH] Fixes #4500 python bools return uppercase True and False, so allow those for BOOLEANS in module common --- lib/ansible/module_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_common.py b/lib/ansible/module_common.py index 648af8ff282..8707bf4fc13 100644 --- a/lib/ansible/module_common.py +++ b/lib/ansible/module_common.py @@ -40,8 +40,8 @@ MODULE_ARGS = <> MODULE_LANG = <> MODULE_COMPLEX_ARGS = <> -BOOLEANS_TRUE = ['yes', 'on', '1', 'true', 1] -BOOLEANS_FALSE = ['no', 'off', '0', 'false', 0] +BOOLEANS_TRUE = ['yes', 'on', '1', 'true', 'True', 1] +BOOLEANS_FALSE = ['no', 'off', '0', 'false', 'False', 0] BOOLEANS = BOOLEANS_TRUE + BOOLEANS_FALSE # ansible modules can be written in any language. To simplify