Skip to content

Commit

Permalink
Detect Perlmutter nodes and set corresponding Globus endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlacinski committed Jan 9, 2023
1 parent 6c5f7ec commit 688961e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zstash/globus.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def globus_activate(hpss: str):
# FQDN is not set on Perlmutter at NERSC
if not local_endpoint:
nersc_hostname = os.environ.get("NERSC_HOST")
if nersc_hostname and (nersc_hostname == "Perlmutter" or nersc_hostname == "unknown"):
if nersc_hostname and (
nersc_hostname == "Perlmutter" or nersc_hostname == "unknown"
):
local_endpoint = regex_endpoint_map.get(r"perlmutter.*\.nersc\.gov")
if not local_endpoint:
logger.error(
Expand Down

0 comments on commit 688961e

Please sign in to comment.