zulip_tools: Support non-lowercase true values.

This matches the ruby implementation.
This commit is contained in:
Alex Vandiver 2024-03-05 16:05:50 +00:00 committed by Tim Abbott
parent 3905416a0e
commit 0ff1fb2e21
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ def get_config_bool(
if config_file.has_option(section, key):
val = config_file.get(section, key)
# 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