You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remote/client: Split _check_allowed() into two methods
It is useful to be able to see if a place is allowed without raising an
error and needing a try...except block. Add a function to handle this
and update _check_allowed() to use it.
This will be used by the updated terminal suport.
Signed-off-by: Simon Glass <sjg@chromium.org>
f"place {place.name} is not acquired by your user, acquired by {user}. To work simultaneously, {user} can execute labgrid-client -p {place.name} allow {self.gethostname()}/{self.getuser()}"
479
-
)
485
+
returnf"place {place.name} is not acquired by your user, acquired by {user}. To work simultaneously, {user} can execute labgrid-client -p {place.name} allow {self.gethostname()}/{self.getuser()}"
480
486
ifhost!=self.gethostname():
481
-
raiseUserError(
482
-
f"place {place.name} is not acquired on this computer, acquired on {host}. To allow this host, use labgrid-client -p {place.name} allow {self.gethostname()}/{self.getuser()} on the other host"
483
-
)
487
+
returnf"place {place.name} is not acquired on this computer, acquired on {host}. To allow this host, use labgrid-client -p {place.name} allow {self.gethostname()}/{self.getuser()} on the other host"
0 commit comments