From a3d58129ecc8f8b17ce4fa88b4e7d75d4e0fc6d5 Mon Sep 17 00:00:00 2001 From: Peter Josef Scheibel Date: Fri, 30 Apr 2021 12:55:56 -0700 Subject: return concrete spec (as is advertised in the docstring) --- lib/spack/spack/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/environment.py b/lib/spack/spack/environment.py index a919ee5cee..ab02f46222 100644 --- a/lib/spack/spack/environment.py +++ b/lib/spack/spack/environment.py @@ -1574,7 +1574,7 @@ class Environment(object): if abstract) if len(root_matches) == 1: - return list(root_matches.items())[0][1] + return list(root_matches.items())[0][0] # More than one spec matched, and either multiple roots matched or # none of the matches were roots -- cgit v1.2.3-60-g2f50