EOX GitLab Instance

Commit b5edc2e7 authored by Nikola Jankovic's avatar Nikola Jankovic 💻
Browse files

Merge branch 's3_defaults-_fix' into 'main'

fixed s3 default endpoint url

See merge request !7
parents da269041 bb7e4239
Pipeline #20423 passed with stages
in 3 minutes and 8 seconds
......@@ -25,7 +25,7 @@ class S3Source(Source):
bucket: str,
secret_access_key: str = None,
access_key_id: str = None,
endpoint_url: str = "",
endpoint_url: str = None,
validate_bucket_name: bool = True,
region_name: str = None,
public: bool = False,
......@@ -82,6 +82,7 @@ class S3Source(Source):
def open(self, path: str) -> IO[AnyStr]:
bucket, key = self.get_bucket_and_key(path)
logger.debug("bucket, key: %s, %s", bucket, key)
return self.client.get_object(Bucket=bucket, Key=key)["Body"]
def stat(self, path: str) -> Stat:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment