Commit 00a1f04b authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Fix bug in rest update

parent b2032c60
......@@ -73,26 +73,27 @@ class Site(models.Model):
services = {}
for service in
deployments = (
ds = (
# only oidcuser are supposed to have deployments
# we do not exclude deployments without ssh_keys, as the
# ssh_keys_to_withdraw still need to be propagated
# .exclude(ssh_keys=None)
if not all:
deployments = deployments.filter(
ds = ds.filter(
# deployments for this site
services[] = deployments
for deployment in deployments.all():
for deployment in ds:
# TODO replace this optimism with an acknowledgement
# TODO we expect the client to get the update here
# deployments for this site
services[] = ds
return services
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