From 374e35d0b888662a9fd065f34d7bd7f45c384d12 Mon Sep 17 00:00:00 2001 From: Nathan Buckner Date: Tue, 5 Apr 2016 11:10:51 -0500 Subject: [PATCH] Added dirty hack to fix paramiko Change-Id: I007efb59ddf0913868af1c3151a37761e40bda2d --- cafe/plugins/sshv2/cafe/engine/sshv2/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cafe/plugins/sshv2/cafe/engine/sshv2/client.py b/cafe/plugins/sshv2/cafe/engine/sshv2/client.py index 41fd42d..36ffbf7 100644 --- a/cafe/plugins/sshv2/cafe/engine/sshv2/client.py +++ b/cafe/plugins/sshv2/cafe/engine/sshv2/client.py @@ -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