Add strings 'True' and 'False' as booleans as python bools converted to strings will look that way.
Workaround for custom modules which are using choices=BOOLEANS instead of type='bool'.
This commit is contained in:
parent
b3ca832025
commit
52c9e2ffcf
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@
|
||||||
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
BOOLEANS_TRUE = ['yes', 'on', '1', 'true', 1, True]
|
BOOLEANS_TRUE = ['yes', 'on', '1', 'true', 'True', 1, True]
|
||||||
BOOLEANS_FALSE = ['no', 'off', '0', 'false', 0, False]
|
BOOLEANS_FALSE = ['no', 'off', '0', 'false', 'False', 0, False]
|
||||||
BOOLEANS = BOOLEANS_TRUE + BOOLEANS_FALSE
|
BOOLEANS = BOOLEANS_TRUE + BOOLEANS_FALSE
|
||||||
|
|
||||||
# ansible modules can be written in any language. To simplify
|
# ansible modules can be written in any language. To simplify
|
||||||
|
|
Loading…
Reference in a new issue