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): ...@@ -66,7 +66,6 @@ class TWSProxy(threading.Thread):
return (None,None) return (None,None)
else: else:
logger.error('Failed to authenticate to the SSH Tunnel') logger.error('Failed to authenticate to the SSH Tunnel')
logger.error(header)
self.csock.close() self.csock.close()
closed.set() closed.set()
return (None,None) return (None,None)
...@@ -108,7 +107,7 @@ class TWSProxy(threading.Thread): ...@@ -108,7 +107,7 @@ class TWSProxy(threading.Thread):
token = b'Authorization: token (?P<authtok>.*)[\W|$]' token = b'Authorization: token (?P<authtok>.*)[\W|$]'
m = re.search(token,header) m = re.search(token,header)
if m: if m:
logger.debug('found the authentication header {}'.format(m.groupdict())) logger.debug('found the Authorization header {}'.format(m.groupdict()))
authtok = m.groupdict()['authtok'] authtok = m.groupdict()['authtok']
s = requests.Session() s = requests.Session()
url = TES+'tunnelstat/'+authtok.decode() url = TES+'tunnelstat/'+authtok.decode()
...@@ -130,6 +129,7 @@ class TWSProxy(threading.Thread): ...@@ -130,6 +129,7 @@ class TWSProxy(threading.Thread):
except: except:
raise Exception('unable to get a port number for the authtok {}'.format(r.text)) raise Exception('unable to get a port number for the authtok {}'.format(r.text))
return port return port
logger.debug('no token yet {} {}'.format(header, token))
return None return None
# if m: # if m:
# print('match verify!',m.group(0)) # 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