mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-01 19:18:05 +00:00
Fix: Datalake s3 get list of files (#9294)
* Fix: changed func to get list of files * Fix: minor change * Fix: minor change * Fix: adding exception
This commit is contained in:
parent
8fe3b09d21
commit
c2221fa596
@ -233,10 +233,10 @@ class DatalakeSource(DatabaseServiceSource): # pylint: disable=too-many-public-
|
||||
try:
|
||||
paginator = self.client.get_paginator("list_objects_v2")
|
||||
for page in paginator.paginate(**kwargs):
|
||||
yield from page["Contents"]
|
||||
yield from page.get("Contents", [])
|
||||
except Exception as exc:
|
||||
logger.debug(traceback.format_exc())
|
||||
logger.warning(f"Unexpected exception to yield s3 object [{page}]: {exc}")
|
||||
logger.warning(f"Unexpected exception to yield s3 object: {exc}")
|
||||
|
||||
def get_tables_name_and_type( # pylint: disable=too-many-branches
|
||||
self,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user