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 @@ def _get_sys_type(self, spec): @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,