Skip to content

Commit

Permalink
Change S3Client to use user-provided storage_options even in Studio e…
Browse files Browse the repository at this point in the history
…nvironment
  • Loading branch information
grez72 committed Nov 13, 2024
1 parent cedc6a6 commit 2e7142b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/litdata/streaming/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _create_client(self) -> None:
os.getenv("AWS_SHARED_CREDENTIALS_FILE") == os.getenv("AWS_CONFIG_FILE") == "/.credentials/.aws_credentials"
)

if has_shared_credentials_file or not _IS_IN_STUDIO:
if has_shared_credentials_file or not _IS_IN_STUDIO or self._storage_options:
self._client = boto3.client(
"s3",
**{
Expand Down

0 comments on commit 2e7142b

Please sign in to comment.