From a397f6ee60438576769732a1c17c56c53e264151 Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Fri, 18 Sep 2020 12:33:29 +1000
Subject: [PATCH] more logz

---
 tes/sshwrapper/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tes/sshwrapper/__init__.py b/tes/sshwrapper/__init__.py
index 5b92006..3833bdc 100644
--- a/tes/sshwrapper/__init__.py
+++ b/tes/sshwrapper/__init__.py
@@ -353,7 +353,7 @@ class Ssh:
             ctrlsocket = Ssh.get_ctrl_master_socket(sess, host, user, sshport)
         else:
             ctrlsocket = Ssh.get_ctrl_master_socket(sess, bastion, user, bastionsshport)
-        logger.debug('in execute, got my ctrlsocket {}'.format(sess.control_processes[ctrlsocket].pid))
+        logger.debug('in execute, got my ctrlsocket {}'.format(sess.ctrl_processes[ctrlsocket].pid))
         if bastion == None:
             # we are executing this command on the login node, so no more magic is needed
             sshcmd = Ssh.SSHCMDWITHOPTS.copy()
@@ -443,7 +443,7 @@ class Ssh:
         Ssh.validate_username(user)
         Ssh.validate_hostname(host)
         ctrlsocket = Ssh.get_ctrl_master_socket(sess, host, user, sshport)
-        logger.debug('in tunnel, got my ctrlsocket {}'.format(sess.control_processes[ctrlsocket].pid))
+        logger.debug('in tunnel, got my ctrlsocket {}'.format(sess.ctrl_processes[ctrlsocket].pid))
         localport = Ssh.get_free_port()
 
         if port == 22 or (not internalfirewall and not localbind):
-- 
GitLab