import get_experiments
- in case of localhost, remove .psi.ch from normalized host name + fix import in t.py + allow boolean as selection criterium
This commit is contained in:
@ -34,10 +34,9 @@ def short_hostname(host):
|
||||
host = socket.gethostbyaddr(host)[0]
|
||||
if host == 'localhost':
|
||||
host = socket.gethostname()
|
||||
else:
|
||||
match = re.match(r'([^.-]+)(?:-129129\d{6}|(-[~.]*|)).psi.ch', host)
|
||||
if match:
|
||||
host = match.group(1) + (match.group(2) or '')
|
||||
match = re.match(r'([^.-]+)(?:-129129\d{6}|(-[~.]*|)).psi.ch', host)
|
||||
if match:
|
||||
host = match.group(1) + (match.group(2) or '')
|
||||
return host
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user