summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/lbann/package.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/lbann/package.py b/var/spack/repos/builtin/packages/lbann/package.py
index f358c3e6d4..9d7bedb5e0 100644
--- a/var/spack/repos/builtin/packages/lbann/package.py
+++ b/var/spack/repos/builtin/packages/lbann/package.py
@@ -338,9 +338,8 @@ class Lbann(CachedCMakePackage, CudaPackage, ROCmPackage):
@property
def cache_name(self):
hostname = socket.gethostname()
- if "SYS_TYPE" in env:
- # Get a hostname that has no node identifier
- hostname = hostname.rstrip("1234567890")
+ # Get a hostname that has no node identifier
+ hostname = hostname.rstrip("1234567890")
return "LBANN_{0}_{1}-{2}-{3}@{4}.cmake".format(
hostname,
self.spec.version,