Skip to content

Commit

Permalink
Fix core
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasHerve-Descours-Cabaud committed Apr 2, 2024
1 parent 8971ae6 commit 43b78ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/handlers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def delete_room(body):
networking = client.NetworkingV1Api()
current_ingress = networking.read_namespaced_ingress(name=ingress, namespace=namespace)
current_ingress_paths = current_ingress.spec.rules[0].http.paths
current_ingress_paths = list(filter(lambda x: x.backend.service.name != f"instance-{body["instance"]}", current_ingress_paths))
current_ingress_paths = list(filter(lambda x: x.backend.service.name != f"instance-{body['instance']}", current_ingress_paths))
current_ingress.spec.rules[0].http.paths = current_ingress_paths

networking.patch_namespaced_ingress(ingress, namespace, current_ingress)
Expand Down

0 comments on commit 43b78ef

Please sign in to comment.