Fixes #4500 python bools return uppercase True and False, so allow those for BOOLEANS in module common

This commit is contained in:
James Tanner 2013-10-23 15:54:36 -04:00
parent e34cde6bef
commit 4833c2fdf0

View file

@ -40,8 +40,8 @@ MODULE_ARGS = <<INCLUDE_ANSIBLE_MODULE_ARGS>>
MODULE_LANG = <<INCLUDE_ANSIBLE_MODULE_LANG>>
MODULE_COMPLEX_ARGS = <<INCLUDE_ANSIBLE_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