Skip to content

Commit

Permalink
fix: enums bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Shalev Avhar committed Jul 30, 2024
1 parent 8f01348 commit 0ce1e8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion port_ocean/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class IntegrationConfiguration(BaseOceanSettings, extra=Extra.allow):

@validator("runtime")
def validate_runtime(cls, runtime: Runtime) -> Runtime:
if runtime == Runtime.Saas.value:
if runtime == Runtime.Saas:
spec = get_spec_file()
if spec is None:
raise ValueError(
Expand Down
2 changes: 1 addition & 1 deletion port_ocean/core/event_listener/once.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def get_scheduled_resync_interval(self) -> int | None:
return None

def is_saas(self) -> bool:
return ocean.config.runtime == Runtime.Saas.value
return ocean.config.runtime == Runtime.Saas

async def before_resync(self) -> None:
if self.is_saas():
Expand Down

0 comments on commit 0ce1e8e

Please sign in to comment.