diff --git a/lib/spack/spack/monitor.py b/lib/spack/spack/monitor.py index acbc1a68891..ac45fadb97d 100644 --- a/lib/spack/spack/monitor.py +++ b/lib/spack/spack/monitor.py @@ -385,7 +385,9 @@ def new_configuration(self, specs): # 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: