diff options
author | Red_M <pooatyou.com@gmail.com> | 2018-03-30 12:41:55 +1000 |
---|---|---|
committer | Red_M <pooatyou.com@gmail.com> | 2018-03-30 12:41:55 +1000 |
commit | 9dee430dd571dba498484b15487d9ad40ced2c8b (patch) | |
tree | b91f010d5106ce3d0b5789f7ffb1056f21783e62 | |
parent | c3a55ed16ae167caa78d16bd8db6e00d354d34b3 (diff) | |
download | pexpect-9dee430dd571dba498484b15487d9ad40ced2c8b.tar.gz |
Bug fix for tunnels.
-rw-r--r-- | pexpect/pxssh.py | 2 |
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: |