Commit a6aa4a3e authored by lukas.burgey's avatar lukas.burgey

--wip--

parent e881abd1
Pipeline #110854 failed with stage
in 1 minute and 28 seconds
......@@ -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):
......
......@@ -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):
......
Markdown is supported
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