Skip to content

Commit

Permalink
Change config precedence so env vars are king
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Murray <dymurray@redhat.com>
  • Loading branch information
dymurray committed Oct 4, 2024
1 parent 3743e0a commit 722abb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kai/models/kai_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,15 @@ def settings_customise_sources(
Config is loaded with the following priority (higher overrides lower):
- Command line args (not implemented)
- Config file that is declared on the command line / via init arguments.
- Environment vars
- Config file that is declared on the command line / via init arguments.
- Global config file (kai.config.toml)
- Default field values
"""
return (
init_settings,
env_settings,
dotenv_settings,
init_settings,
file_secret_settings,
TomlConfigSettingsSource(
settings_cls, os.path.join(PATH_KAI, "config.toml")
Expand Down

0 comments on commit 722abb5

Please sign in to comment.