Commit 744272cf authored by lukas.burgey's avatar lukas.burgey
Browse files

Fix bug in DeploymentState.get_or_create

parent b183e5dd
Pipeline #110767 passed with stage
in 1 minute and 24 seconds
...@@ -415,6 +415,8 @@ class DeploymentState(models.Model): ...@@ -415,6 +415,8 @@ class DeploymentState(models.Model):
) )
if created: if created:
LOGGER.debug(state.msg('Created')) LOGGER.debug(state.msg('Created'))
# always bind this state to the deployment
state.bind_to_deployment(deployment) state.bind_to_deployment(deployment)
return state, created return state, created
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment