mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-23 01:12:22 +00:00
MINOR: Fix error message in S3Source (#16043)
* Fix error message in S3Source * Fix checkstyle --------- Co-authored-by: Pablo Takara <pjt1991@gmail.com>
This commit is contained in:
parent
4ac5912d4c
commit
21d7a2ffba
@ -89,9 +89,7 @@ class S3Source(StorageServiceSource):
|
||||
config: WorkflowSource = WorkflowSource.parse_obj(config_dict)
|
||||
connection: S3Connection = config.serviceConnection.__root__.config
|
||||
if not isinstance(connection, S3Connection):
|
||||
raise InvalidSourceException(
|
||||
f"Expected S3StoreConnection, but got {connection}"
|
||||
)
|
||||
raise InvalidSourceException(f"Expected S3Connection, but got {connection}")
|
||||
return cls(config, metadata)
|
||||
|
||||
def get_containers(self) -> Iterable[S3ContainerDetails]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user