Skip to content

Commit

Permalink
fixup! remote/client: be more explicit about expected place acquired …
Browse files Browse the repository at this point in the history
…state in allow()/release_from()
  • Loading branch information
jluebbe committed Jul 26, 2024
1 parent 977650e commit 3e5a39f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion labgrid/remote/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,9 @@ async def release(self):

async def release_from(self):
"""Release a place, but only if acquired by a specific user"""
place = self.get_acquired_place()
place = self.get_place()
if not place.acquired:
raise UserError(f"place {place.name} is not acquired")

request = labgrid_coordinator_pb2.ReleasePlaceRequest(placename=place.name, fromuser=self.args.acquired)

Expand Down

0 comments on commit 3e5a39f

Please sign in to comment.