Skip to content

Commit

Permalink
Merge pull request #1342 from jluebbe/fix-ssh-version-cache
Browse files Browse the repository at this point in the history
driver/sshdriver: fix caching of _ssh_version
  • Loading branch information
Bastian-Krause authored Mar 21, 2024
2 parents 430ec4c + 7bba589 commit 6c8c6e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labgrid/driver/sshdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def get_status(self):
def _ssh_version(self):
version = subprocess.run(["ssh", "-V"], capture_output=True, text=True)
version = re.match(r"^OpenSSH_(\d+)\.(\d+)", version.stderr)
return map(int, version.groups())
return tuple(int(x) for x in version.groups())

def _scp_supports_explicit_sftp_mode(self):
major, minor = self._ssh_version
Expand Down

0 comments on commit 6c8c6e5

Please sign in to comment.