summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Josef Scheibel <scheibel1@llnl.gov>2021-04-30 12:55:56 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2021-05-07 10:07:53 -0700
commita3d58129ecc8f8b17ce4fa88b4e7d75d4e0fc6d5 (patch)
treef5ca14e237eed4e3e4c0a74c8ec7f1db6c5a9c47 /lib
parent320eb4872d1c2e776948786a344f403754261389 (diff)
downloadspack-a3d58129ecc8f8b17ce4fa88b4e7d75d4e0fc6d5.tar.gz
spack-a3d58129ecc8f8b17ce4fa88b4e7d75d4e0fc6d5.tar.bz2
spack-a3d58129ecc8f8b17ce4fa88b4e7d75d4e0fc6d5.tar.xz
spack-a3d58129ecc8f8b17ce4fa88b4e7d75d4e0fc6d5.zip
return concrete spec (as is advertised in the docstring)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/environment.py2
1 files changed, 1 insertions, 1 deletions
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