Skip to content

Commit

Permalink
conn: return boolean in SSHClient
Browse files Browse the repository at this point in the history
is_connected is actually an integer so we need to convert it
  • Loading branch information
pbrezina committed Oct 24, 2024
1 parent f89f765 commit 516b7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_mh/conn/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def requested_auth_methods(self) -> list[str]:

@property
def connected(self) -> bool:
return self.__conn.is_connected
return bool(self.__conn.is_connected)

def connect(self) -> None:
"""
Expand Down

0 comments on commit 516b7d5

Please sign in to comment.