Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylJonny committed Nov 6, 2024
1 parent 83fe86c commit c9319b3
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,19 @@ class DeltaLakeSourceConfig(PlatformInstanceConfigMixin, EnvConfigMixin):

@cached_property
def is_s3(self) -> bool:
return bool(self.s3 is not None and self.s3.aws_config is not None and is_s3_uri(self.base_path or ""))
return bool(
self.s3 is not None
and self.s3.aws_config is not None
and is_s3_uri(self.base_path or "")
)

@cached_property
def is_azure(self) -> bool:
return bool(self.azure is not None and self.azure.azure_config is not None and is_abs_uri(self.base_path or ""))
return bool(
self.azure is not None
and self.azure.azure_config is not None
and is_abs_uri(self.base_path or "")
)

@cached_property
def complete_path(self):
Expand Down

0 comments on commit c9319b3

Please sign in to comment.