Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
efc27bd3
Commit
efc27bd3
authored
Sep 25, 2020
by
lukas.burgey
Browse files
Remove unwanted Deployent.update
parent
14b00c9c
Pipeline
#110833
failed with stage
in 1 minute and 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/models/deployments.py
View file @
efc27bd3
...
...
@@ -115,10 +115,6 @@ class Deployment(PolymorphicModel):
def
_assure_states_exist
(
self
):
# pragma: no cover
raise
NotImplementedError
(
'Should be overwritten in subclass'
)
def
update
(
self
):
self
.
_assure_states_exist
()
self
.
publish_to_user
()
# call when you changed Deployment.state_target
def
target_changed
(
self
):
LOGGER
.
debug
(
self
.
msg
(
'Target changed to {}'
.
format
(
self
.
state_target
)))
...
...
feudal/backend/views/clients.py
View file @
efc27bd3
...
...
@@ -86,10 +86,6 @@ class ConfigurationView(views.APIView):
except
VO
.
DoesNotExist
:
service
.
vos
.
add
(
vo
)
# we need to update the Deployments here
for
dep
in
vo
.
vo_deployments
.
all
():
dep
.
update
()
# returns the service ID to service mapping contained in the request
def
parse_sid_to_service
(
self
,
request
):
self
.
sid_to_service
=
{}
...
...
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