File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -719,6 +719,8 @@ async def release(self):
719
719
async def release_from (self ):
720
720
"""Release a place, but only if acquired by a specific user"""
721
721
place = self .get_place ()
722
+ if not place .acquired :
723
+ raise UserError (f"place { place .name } is not acquired" )
722
724
723
725
request = labgrid_coordinator_pb2 .ReleasePlaceRequest (placename = place .name , fromuser = self .args .acquired )
724
726
@@ -732,7 +734,7 @@ async def release_from(self):
732
734
733
735
async def allow (self ):
734
736
"""Allow another use access to a previously acquired place"""
735
- place = self .get_place ()
737
+ place = self .get_acquired_place ()
736
738
if "/" not in self .args .user :
737
739
raise UserError (f"user { self .args .user } must be in <host>/<username> format" )
738
740
request = labgrid_coordinator_pb2 .AllowPlaceRequest (placename = place .name , user = self .args .user )
You can’t perform that action at this time.
0 commit comments