From c6edfa3f31e30727387c7863821085728089f29d Mon Sep 17 00:00:00 2001 From: Vanessasaurus <814322+vsoch@users.noreply.github.com> Date: Tue, 14 Sep 2021 08:02:04 -0600 Subject: Update spack monitor to support new spec (#25928) This PR coincides with tiny changes to spack to support spack monitor using the new spec the corresponding spack monitor PR is at https://github.com/spack/spack-monitor/pull/31. Since there are no changes to the database we can actually update the current server fairly easily, so either someone can test locally or we can just update and then test from that (and update as needed). Signed-off-by: vsoch Co-authored-by: vsoch --- lib/spack/spack/monitor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3-70-g09d2