Updating SSHV2 client for paramiko 2.0.0 issue #104
This PR updates the SSHV2 client to have the fix the issue outlined in https://github.com/paramiko/paramiko/issues/735#issuecomment-216083986 where a new library added by paramiko 2.0.0 (cryptography) causes a threadlocking issue where the SSHV2 client is unable to function when connecting on import or through the unittest runner. This PR should not affect any functionality users may have but may affect users who have not yet installed the cryptography library. To install the correct cryptography library it is recommended to upgrade paramiko using `pip install --upgrade paramiko` Change-Id: Iabcce8a66b5958b117c45977708cab777dc90a39
This commit is contained in:
parent
8823a48b7e
commit
4be20ff3db
|
@ -29,6 +29,10 @@ from cafe.engine.sshv2.models import ExecResponse
|
|||
# which causes a deadlock. https://github.com/paramiko/paramiko/issues/104
|
||||
py3compat.u("")
|
||||
|
||||
# dirty hack 2.0 also issue 104
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
default_backend()
|
||||
|
||||
|
||||
class ProxyTypes(object):
|
||||
SOCKS5 = 2
|
||||
|
|
Loading…
Reference in New Issue