Added dirty hack to fix paramiko

Change-Id: I007efb59ddf0913868af1c3151a37761e40bda2d
This commit is contained in:
Nathan Buckner 2016-04-05 11:10:51 -05:00
parent 1a2d3fa057
commit 374e35d0b8
1 changed files with 5 additions and 0 deletions

View File

@ -18,12 +18,17 @@ import io
import time
from paramiko import AutoAddPolicy, RSAKey
from paramiko import py3compat
from paramiko.client import SSHClient as ParamikoSSHClient
from cafe.engine.sshv2.common import (
BaseSSHClass, _SSHLogger, DEFAULT_TIMEOUT, POLLING_RATE, CHANNEL_KEEPALIVE)
from cafe.engine.sshv2.models import ExecResponse
# this is a hack to preimport dependencies imported in a thread during connect
# which causes a deadlock. https://github.com/paramiko/paramiko/issues/104
py3compat.u("")
class ProxyTypes(object):
SOCKS5 = 2