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

pull/4034/merge
James Tanner 11 years ago
parent e34cde6bef
commit 4833c2fdf0

@ -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

Loading…
Cancel
Save