Add value == 1 to helper.bool_true

This commit is contained in:
JonnyWong16 2020-02-22 22:49:34 -08:00
parent 6c84dd7be8
commit 02fd9edbbf

View file

@ -1261,7 +1261,7 @@ def mask_config_passwords(config):
def bool_true(value):
if value is True:
if value is True or value == 1:
return True
elif isinstance(value, basestring) and value.lower() in ('1', 'true', 't', 'yes', 'y', 'on'):
return True