EOX GitLab Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
View Server 2
harvester
Commits
bb7e4239
Commit
bb7e4239
authored
Jan 13, 2022
by
Nikola Jankovic
💻
Browse files
fixed s3 default endpoint url
parent
da269041
Pipeline
#20419
passed with stage
in 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
harvester/source/s3.py
View file @
bb7e4239
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment