Add value == 1 to helper.bool_true
This commit is contained in:
@@ -1261,7 +1261,7 @@ def mask_config_passwords(config):
|
|||||||
|
|
||||||
|
|
||||||
def bool_true(value):
|
def bool_true(value):
|
||||||
if value is True:
|
if value is True or value == 1:
|
||||||
return True
|
return True
|
||||||
elif isinstance(value, basestring) and value.lower() in ('1', 'true', 't', 'yes', 'y', 'on'):
|
elif isinstance(value, basestring) and value.lower() in ('1', 'true', 't', 'yes', 'y', 'on'):
|
||||||
return True
|
return True
|
||||||
|
Reference in New Issue
Block a user