summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/monitor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/monitor.py b/lib/spack/spack/monitor.py
index acbc1a6889..ac45fadb97 100644
--- a/lib/spack/spack/monitor.py
+++ b/lib/spack/spack/monitor.py
@@ -385,7 +385,9 @@ class SpackMonitorClient:
# Not sure if this is needed here, but I see it elsewhere
if spec.name in spack.repo.path or spec.virtual:
spec.concretize()
- as_dict = {"spec": spec.to_dict(hash=ht.full_hash),
+
+ # Remove extra level of nesting
+ as_dict = {"spec": spec.to_dict(hash=ht.full_hash)['spec'],
"spack_version": self.spack_version}
if self.save_local: