Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
56651d03
Commit
56651d03
authored
Dec 06, 2018
by
Lukas Burgey
Browse files
Fix a bug that caused a deployment loop
parent
a2dc53a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/models/deployments.py
View file @
56651d03
...
...
@@ -610,9 +610,13 @@ class DeploymentState(models.Model):
# publish after we updated the values of the response
self
.
_set_state
(
state
,
publish
=
True
)
if
state
==
FAILED
or
state
==
REJECTED
:
return
# is the target reached now?
if
str
(
self
.
state_target
)
!=
str
(
self
.
state
):
LOGGER
.
debug
(
self
.
msg
(
'Target {} still not reached. Publishing again'
.
format
(
LOGGER
.
debug
(
self
.
msg
(
'State is {}, but should be {}. Publishing again'
.
format
(
self
.
state
,
self
.
state_target
,
)))
self
.
publish_to_client
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment