Skip to content

Commit 8e06c58

Browse files
committed
fix: Call parent constructor in SSH transport
Also add kwargs support to this transport
1 parent e5a8826 commit 8e06c58

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/itoolkit/transport/ssh.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,13 @@ class SshTransport(XmlServiceTransport):
5555
(obj)
5656
""" # noqa: E501 See https://github.com/PyCQA/pycodestyle/issues/888
5757

58-
def __init__(self, sshclient=None):
58+
def __init__(self, sshclient=None, **kwargs):
5959
# TODO: allow connection to be materialized from IBM Cloud deployments
6060
if not hasattr(sshclient, "exec_command"):
6161
raise Exception("An instance of paramiko.SSHClient is required")
62+
63+
super(SshTransport, self).__init__(**kwargs)
64+
6265
self.conn = sshclient
6366

6467
def call(self, tk):

0 commit comments

Comments
 (0)