bugfix when binding tunnels

This commit is contained in:
nojhan 2009-06-29 09:09:56 +00:00
commit 3008990e4d

View file

@ -240,7 +240,7 @@ class AutoSSHTunnelMonitor(list):
"""Bind autossh process to the related ssh connections, according to the pid""" """Bind autossh process to the related ssh connections, according to the pid"""
for t in tunnels: for t in tunnels:
for i in autosshs: for i in autosshs:
if i['pid'] == ppid: if i['pid'] == t['autossh_pid']:
# add to the list of tunnels of the AutoSSHInstance instance # add to the list of tunnels of the AutoSSHInstance instance
i['tunnels'] += [t] i['tunnels'] += [t]