Skip to content

Commit 6c8c6e5

Browse files
Merge pull request #1342 from jluebbe/fix-ssh-version-cache
driver/sshdriver: fix caching of _ssh_version
2 parents 430ec4c + 7bba589 commit 6c8c6e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labgrid/driver/sshdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def get_status(self):
447447
def _ssh_version(self):
448448
version = subprocess.run(["ssh", "-V"], capture_output=True, text=True)
449449
version = re.match(r"^OpenSSH_(\d+)\.(\d+)", version.stderr)
450-
return map(int, version.groups())
450+
return tuple(int(x) for x in version.groups())
451451

452452
def _scp_supports_explicit_sftp_mode(self):
453453
major, minor = self._ssh_version

0 commit comments

Comments
 (0)