fix: verify_ssl: true in YAML now uses DEFAULT_REDMINE_VERIFY path
Previously boolean True was passed directly to python-redmine which used system CA bundle instead of the project's default CA file. Now 'true' in YAML maps to DEFAULT_REDMINE_VERIFY path.
This commit is contained in:
@@ -139,13 +139,13 @@ class AppConfig:
|
||||
if value is None:
|
||||
return DEFAULT_REDMINE_VERIFY
|
||||
if isinstance(value, bool):
|
||||
return value
|
||||
return DEFAULT_REDMINE_VERIFY if value else False
|
||||
if isinstance(value, str):
|
||||
normalized = value.lower()
|
||||
if normalized in FALSE_VALUES:
|
||||
return False
|
||||
if normalized in TRUE_VALUES:
|
||||
return True
|
||||
return DEFAULT_REDMINE_VERIFY
|
||||
return resolve_env_vars(value)
|
||||
return DEFAULT_REDMINE_VERIFY
|
||||
|
||||
|
||||
Reference in New Issue
Block a user