mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-22 18:31:25 -07:00
added check and diff mode control to console
also expanded mk_boolean to allow for 'on/off' fixes #16815
This commit is contained in:
parent
2219339dd5
commit
363596c67f
2 changed files with 17 additions and 1 deletions
|
@ -34,7 +34,7 @@ def mk_boolean(value):
|
|||
if value is None:
|
||||
return False
|
||||
val = str(value)
|
||||
if val.lower() in [ "true", "t", "y", "1", "yes" ]:
|
||||
if val.lower() in [ "true", "t", "y", "1", "yes", "on" ]:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue