Skip to content

Commit

Permalink
moved the config to the base settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yairsimantov20 committed Jul 26, 2023
1 parent 380a587 commit 131045f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions port_ocean/config/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ class BaseOceanSettings(BaseSettings):

class Config:
yaml_file = "./config.yaml"
env_prefix = "OCEAN__"
env_nested_delimiter = "__"

@classmethod
def customise_sources(cls, init_settings: InitSettingsSource, env_settings: EnvSettingsSource, *_, **__): # type: ignore
Expand Down
4 changes: 0 additions & 4 deletions port_ocean/config/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ class IntegrationConfiguration(BaseOceanSettings, extra=Extra.allow):
initialize_port_resources: bool = False
integration: IntegrationSettings

class Config:
env_prefix = "OCEAN__"
env_nested_delimiter = "__"


LogLevelType = Literal["ERROR", "WARNING", "INFO", "DEBUG", "CRITICAL"]

Expand Down

0 comments on commit 131045f

Please sign in to comment.