Skip to content

Commit 4950853

Browse files
committed
using proper S3 endpoint if available in env.
1 parent eec6e45 commit 4950853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def setup(
5050
if use_sqlite:
5151
# uploading db file to s3:
5252
if CE_MODE:
53-
s3 = boto3.client("s3")
53+
s3 = boto3.client("s3") if not os.getenv("S3_ENDPOINT_URL") else boto3.client('s3', endpoint_url=os.getenv("S3_ENDPOINT_URL"))
5454
bucket_name = Path(mlrun.mlconf.artifact_path).parts[1]
5555
# Upload the file
5656
s3.upload_file(

0 commit comments

Comments
 (0)