Skip to content

Commit

Permalink
remote/client: remove two unused variables
Browse files Browse the repository at this point in the history
Fixes:
  labgrid/remote/client.py:711:8: W0612: Unused variable 'user' (unused-variable)
  labgrid/remote/client.py:655:8: W0612: Unused variable 'acquired_by' (unused-variable)

Signed-off-by: Rouven Czerwinski <[email protected]>
  • Loading branch information
Emantor committed Jun 20, 2024
1 parent 421bda8 commit c428477
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions labgrid/remote/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,6 @@ def check_matches(self, place):
async def acquire(self):
"""Acquire a place, marking it unavailable for other clients"""
place = self.get_place()
acquired_by = f"{self.gethostname()}/{self.getuser()}"
if place.acquired:
raise UserError(f"place {place.name} is already acquired by {place.acquired}") # FIXME: done in coordinator?

Expand Down Expand Up @@ -708,7 +707,6 @@ async def release(self):
async def release_from(self):
"""Release a place, but only if acquired by a specific user"""
place = self.get_place()
user = self.getuser()

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

Expand Down

0 comments on commit c428477

Please sign in to comment.