Commit 549b7bef authored by Lukas Burgey's avatar Lukas Burgey

Fix a bug in pending_tasks

parent 4fa25981
...@@ -67,10 +67,13 @@ class Site(models.Model): ...@@ -67,10 +67,13 @@ class Site(models.Model):
def pending_tasks(self): def pending_tasks(self):
tasks = {} tasks = {}
# ignores orphaned deployment states
dep_states = [ dep_states = [
state state
for state in self.state_items.all() for state in self.state_items.all()
if state.is_pending or state.is_credential_pending if (
state.is_pending or state.is_credential_pending
) and state.parent is not None
] ]
# make the tasks unique here # make the tasks unique here
......
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