From 05c1069b3a625ae1488495edfd39c6651c9958fa Mon Sep 17 00:00:00 2001 From: Jordan Bonser Date: Fri, 21 Mar 2025 10:39:43 +0000 Subject: [PATCH] fix: ssh strategy port default the default for the ssh strategies network port was set to `None`, which failed the instance_of(str) validation that is set on the attr. --- bazel/labgrid/strategy/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/labgrid/strategy/ssh.py b/bazel/labgrid/strategy/ssh.py index 5a7109b4..67813630 100644 --- a/bazel/labgrid/strategy/ssh.py +++ b/bazel/labgrid/strategy/ssh.py @@ -22,7 +22,7 @@ class SSHStrategy(Strategy): status = attr.ib(default=Status.unknown) - network_port = attr.ib(default=None, validator=attr.validators.instance_of(str)) + network_port = attr.ib(default="", validator=attr.validators.instance_of(str)) def __attrs_post_init__(self): super().__attrs_post_init__() -- GitLab