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
a6aa4a3e
Commit
a6aa4a3e
authored
Sep 25, 2020
by
lukas.burgey
Browse files
--wip--
parent
e881abd1
Pipeline
#110854
failed with stage
in 1 minute and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/models/deployments.py
View file @
a6aa4a3e
...
...
@@ -418,6 +418,8 @@ class DeploymentState(models.Model):
tpart
()
else
:
self
.
_set_state
(
tpart
)
else
:
LOGGER
.
debug
(
self
.
msg
(
'No transition to apply for: Target = {} - State = {}'
.
format
(
self
.
state_target
,
self
.
state
)))
# called when a client patches parts of this state
def
state_changed
(
self
):
...
...
feudal/backend/views/rest.py
View file @
a6aa4a3e
...
...
@@ -238,6 +238,8 @@ class DeploymentView(generics.RetrieveUpdateAPIView):
if
dep
.
state_target
!=
old_state_target
:
dep
.
target_changed
()
else
:
LOGGER
.
debug
(
dep
.
msg
(
'Patched but the state_target was not changed'
))
class
DeploymentStateListView
(
generics
.
ListCreateAPIView
):
...
...
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