Skip to content
Snippets Groups Projects
Commit c40abef3 authored by Chris Hines's avatar Chris Hines
Browse files

why doesn't my thingo workgit add __init__.py!

parent f653201b
No related branches found
No related tags found
3 merge requests!77Revert "disable agressive kill and restart",!64Test,!63Dev
Pipeline #16411 passed
......@@ -66,7 +66,6 @@ class TWSProxy(threading.Thread):
return (None,None)
else:
logger.error('Failed to authenticate to the SSH Tunnel')
logger.error(header)
self.csock.close()
closed.set()
return (None,None)
......@@ -108,7 +107,7 @@ class TWSProxy(threading.Thread):
token = b'Authorization: token (?P<authtok>.*)[\W|$]'
m = re.search(token,header)
if m:
logger.debug('found the authentication header {}'.format(m.groupdict()))
logger.debug('found the Authorization header {}'.format(m.groupdict()))
authtok = m.groupdict()['authtok']
s = requests.Session()
url = TES+'tunnelstat/'+authtok.decode()
......@@ -130,6 +129,7 @@ class TWSProxy(threading.Thread):
except:
raise Exception('unable to get a port number for the authtok {}'.format(r.text))
return port
logger.debug('no token yet {} {}'.format(header, token))
return None
# if m:
# print('match verify!',m.group(0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment