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):
def pending_tasks(self):
tasks = {}
# ignores orphaned deployment states
dep_states = [
state
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
......
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