EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESA
PRISM
VS
Commits
05b77115
Commit
05b77115
authored
4 years ago
by
Fabian Schindler
Browse files
Options
Downloads
Patches
Plain Diff
Fixing cases for multi-bucket/container setup
parent
1cd24b7f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!36
Staging to master to prepare 1.0.0 release
,
!32
Registrar modularization
,
!27
Registrar modularization
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/registrar/backend.py
+3
-2
3 additions, 2 deletions
core/registrar/backend.py
core/registrar/registrar.py
+1
-0
1 addition, 0 deletions
core/registrar/registrar.py
with
4 additions
and
2 deletions
core/registrar/backend.py
+
3
−
2
View file @
05b77115
...
...
@@ -54,6 +54,7 @@ class EOxServerBackend(Backend):
storage_type
=
'
local
'
,
)
storage_name
=
storage
.
name
elif
isinstance
(
source
,
S3Source
):
params
=
json
.
dumps
({
'
ACCESS_KEY_ID
'
:
source
.
access_key_id
,
...
...
@@ -70,7 +71,7 @@ class EOxServerBackend(Backend):
bucket
,
_
=
source
.
get_bucket_and_key
(
path
)
storage
,
created_storage
=
backends
.
Storage
.
objects
.
get_or_create
(
name
=
source
.
name
,
name
=
source
.
name
if
source
.
bucket
else
f
'
{
source
.
name
}
-
{
bucket
}
'
,
url
=
bucket
,
storage_type
=
'
S3
'
,
storage_auth
=
storage_auth
,
...
...
@@ -98,7 +99,7 @@ class EOxServerBackend(Backend):
container
,
_
=
source
.
get_container_and_path
(
path
)
storage
,
created_storage
=
backends
.
Storage
.
objects
.
get_or_create
(
name
=
source
.
name
,
name
=
source
.
name
if
source
.
container
else
f
'
{
source
.
name
}
-
{
container
}
'
,
url
=
container
,
storage_type
=
'
swift
'
,
storage_auth
=
storage_auth
,
...
...
This diff is collapsed.
Click to expand it.
core/registrar/registrar.py
+
1
−
0
View file @
05b77115
...
...
@@ -35,6 +35,7 @@ def register_file(config: dict, path: str, replace: bool=False):
for
post_handler
in
get_post_handlers
(
config
):
post_handler
(
config
,
path
,
context
)
logger
.
info
(
f
"
Successfully
{
'
replaced
'
if
replace
else
'
registered
'
}
'
{
path
}
'"
)
return
context
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment