mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user