Skip to content

Commit

Permalink
coordinator: remove username check
Browse files Browse the repository at this point in the history
Remove the username check, this is currently verified on the client
side.

Signed-off-by: Rouven Czerwinski <[email protected]>
  • Loading branch information
Emantor committed Jun 21, 2024
1 parent d28220c commit ae09079
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions labgrid/remote/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ae09079

Please sign in to comment.