summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVanessasaurus <814322+vsoch@users.noreply.github.com>2021-09-14 08:02:04 -0600
committerGitHub <noreply@github.com>2021-09-14 08:02:04 -0600
commitc6edfa3f31e30727387c7863821085728089f29d (patch)
treecc88e65d6746ed4bdd463c53334d99f01dafa949 /lib
parentfc96c49b0b00e64c4594b69298d6546b55d11e08 (diff)
downloadspack-c6edfa3f31e30727387c7863821085728089f29d.tar.gz
spack-c6edfa3f31e30727387c7863821085728089f29d.tar.bz2
spack-c6edfa3f31e30727387c7863821085728089f29d.tar.xz
spack-c6edfa3f31e30727387c7863821085728089f29d.zip
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 <vsoch@users.noreply.github.com> Co-authored-by: vsoch <vsoch@users.noreply.github.com>
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: