mirror of https://github.com/zulip/zulip.git
zulip_tools: Support non-lowercase true values.
This matches the ruby implementation.
This commit is contained in:
parent
3905416a0e
commit
0ff1fb2e21
|
@ -600,7 +600,7 @@ def get_config_bool(
|
||||||
if config_file.has_option(section, key):
|
if config_file.has_option(section, key):
|
||||||
val = config_file.get(section, key)
|
val = config_file.get(section, key)
|
||||||
# This list is parallel to puppet/zulip/lib/puppet/functions/zulipconf.rb
|
# This list is parallel to puppet/zulip/lib/puppet/functions/zulipconf.rb
|
||||||
return val in ["1", "y", "t", "true", "yes", "enable", "enabled"]
|
return val.lower() in ["1", "y", "t", "true", "yes", "enable", "enabled"]
|
||||||
return default_value
|
return default_value
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue