From ae0907928feec6b4bbaba7658cf5095d241a848d Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Fri, 21 Jun 2024 16:21:06 +0200 Subject: [PATCH] coordinator: remove username check Remove the username check, this is currently verified on the client side. Signed-off-by: Rouven Czerwinski --- labgrid/remote/coordinator.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/labgrid/remote/coordinator.py b/labgrid/remote/coordinator.py index 6ab4a2380..5d03d5874 100644 --- a/labgrid/remote/coordinator.py +++ b/labgrid/remote/coordinator.py @@ -720,12 +720,6 @@ async def ReleasePlace(self, request, context): await context.abort(grpc.StatusCode.FAILED_PRECONDITION, f"Place {name} is not acquired") if fromuser and place.acquired != fromuser: return labgrid_coordinator_pb2.ReleasePlaceResponse() - if username != place.acquired: - await context.abort( - grpc.StatusCode.FAILED_PRECONDITION, - f"Place {name} is not acquired by {username}, acquired by", - {place.acquired}, - ) await self._release_resources(place, place.acquired_resources)