diff --git a/requirements.txt b/requirements.txt index 672b74c33..7b4a85249 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,6 @@ python-novaclient>=9.1.0 # Apache-2.0 python-octaviaclient>=1.9.0 # Apache-2.0 python-openstackclient>=3.12.0 # Apache-2.0 six>=1.11.0 # MIT -sshtunnel>=0.1.5.0 # MIT +sshtunnel>=0.2.2 # MIT stestr>=2.0.0 # Apache-2.0 testtools>=2.2.0 # MIT diff --git a/tobiko/shell/ssh/_forward.py b/tobiko/shell/ssh/_forward.py index 6feebf00d..b0e978ac7 100644 --- a/tobiko/shell/ssh/_forward.py +++ b/tobiko/shell/ssh/_forward.py @@ -228,11 +228,11 @@ class SSHTunnelForwarder(sshtunnel.SSHTunnelForwarder): def _get_transport(self): return self.ssh_client.connect().get_transport() - def _stop_transport(self): + def _stop_transport(self, force=True): if self.is_active: del self._transport assert not self.is_active - super(SSHTunnelForwarder, self)._stop_transport() + super(SSHTunnelForwarder, self)._stop_transport(force=force) @staticmethod def _get_binds(bind_address, bind_addresses, is_remote=False):