File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11from __future__ import absolute_import , print_function
22
33import configparser
4+ import os
45import os .path
56import re
67import socket
2223regex_endpoint_map = {
2324 r"theta.*\.alcf\.anl\.gov" : "08925f04-569f-11e7-bef8-22000b9a448b" ,
2425 r"blueslogin.*\.lcrc\.anl\.gov" : "61f9954c-a4fa-11ea-8f07-0a21f750d19b" ,
26+ r"chrlogin.*\.lcrc\.anl\.gov" : "61f9954c-a4fa-11ea-8f07-0a21f750d19b" ,
2527 r"b\d+\.lcrc\.anl\.gov" : "61f9954c-a4fa-11ea-8f07-0a21f750d19b" ,
2628 r"chr.*\.lcrc\.anl\.gov" : "61f9954c-a4fa-11ea-8f07-0a21f750d19b" ,
2729 r"cori.*\.nersc\.gov" : "9d6d99eb-6d04-11e5-ba46-22000b92c6ec" ,
30+ r"compy.*\.pnl\.gov" : "68fbd2fa-83d7-11e9-8e63-029d279f7e24" ,
2831 r"perlmutter.*\.nersc\.gov" : "6bdc7956-fc0f-4ad2-989c-7aa5ee643a79" , # If this doesn't work, use cori
2932}
3033
@@ -66,6 +69,10 @@ def globus_activate(hpss: str):
6669 sys .exit (1 )
6770 if not local_endpoint :
6871 fqdn = socket .getfqdn ()
72+ if re .fullmatch (r"n.*\.local" , fqdn ) and os .getenv ("HOSTNAME" , "NA" ).startswith (
73+ "compy"
74+ ):
75+ fqdn = "compy.pnl.gov"
6976 for pattern in regex_endpoint_map .keys ():
7077 if re .fullmatch (pattern , fqdn ):
7178 local_endpoint = regex_endpoint_map .get (pattern )
You can’t perform that action at this time.
0 commit comments