summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRed_M <pooatyou.com@gmail.com>2018-03-30 12:41:55 +1000
committerRed_M <pooatyou.com@gmail.com>2018-03-30 12:41:55 +1000
commit9dee430dd571dba498484b15487d9ad40ced2c8b (patch)
treeb91f010d5106ce3d0b5789f7ffb1056f21783e62
parentc3a55ed16ae167caa78d16bd8db6e00d354d34b3 (diff)
downloadpexpect-9dee430dd571dba498484b15487d9ad40ced2c8b.tar.gz
Bug fix for tunnels.
-rw-r--r--pexpect/pxssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py
index 20ce273..8d3a48c 100644
--- a/pexpect/pxssh.py
+++ b/pexpect/pxssh.py
@@ -344,7 +344,7 @@ class pxssh (spawn):
tunnels = ssh_tunnels[tunnel_type]
for tunnel in tunnels:
if spawn_local_ssh==False:
- tunnel = quote(tunnel)
+ tunnel = quote(str(tunnel))
ssh_options = ssh_options + ' -' + cmd_type + ' ' + str(tunnel)
cmd = "ssh %s -l %s %s" % (ssh_options, username, server)
if self.debug_command_string: