Skip to content

Commit

Permalink
Update find_machine.py for CEE (sandialabs#563)
Browse files Browse the repository at this point in the history
* Update find_machine.py for CEE

* Update find_machine.py
  • Loading branch information
psakievich authored Sep 6, 2023
1 parent 258a590 commit c995b17
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spack-scripting/scripting/cmd/manager_cmds/find_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ def __init__(self, test, full_machine_name):


def is_cee(hostname):
site = False
system = False
if "SNLSITE" in os.environ:
return os.environ["SNLSITE"] == "cee"
return False
site = os.environ["SNLSITE"] == "cee"
if "SNLSYSTEM" in os.environ:
system = os.environ["SNLSYSTEM"] == "cee"
detected = site or system
return detected


def is_snl_hpc(hostname):
Expand Down

0 comments on commit c995b17

Please sign in to comment.