Skip to content

Commit

Permalink
fix(storage): convert bool to string
Browse files Browse the repository at this point in the history
Signed-off-by: -LAN- <[email protected]>
  • Loading branch information
laipz8200 committed Dec 10, 2024
1 parent 7d9a76c commit 600cbbf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/extensions/ext_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ def get_storage_factory(storage_type: str) -> Callable[[], BaseStorage]:

# For R2
if "endpoint" in kwargs and "r2.cloudflarestorage.com" in kwargs["endpoint"]:
kwargs["disable_stat_with_override"] = True
kwargs["disable_stat_with_override"] = "true"
kwargs["region"] = kwargs["region"] or "auto"
logger.debug("Using R2 for S3")

for k, v in kwargs.items():
if v is None:
logger.warning(f"S3 config {k} is not set")

return lambda: OpenDALStorage(scheme=OpenDALScheme.S3, **kwargs)
case StorageType.AZURE_BLOB:
from extensions.storage.azure_blob_storage import AzureBlobStorage
Expand Down

0 comments on commit 600cbbf

Please sign in to comment.