From 07fbda3f9a39002426f53e1533c9328f28ead453 Mon Sep 17 00:00:00 2001 From: benbierens Date: Thu, 13 Apr 2023 15:04:01 +0200 Subject: [PATCH] Allows for metrics collection when some codex groups don't have metrics enabled. --- DistTestCore/DistTest.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/DistTestCore/DistTest.cs b/DistTestCore/DistTest.cs index 0cfea375..a088e7c0 100644 --- a/DistTestCore/DistTest.cs +++ b/DistTestCore/DistTest.cs @@ -115,8 +115,11 @@ namespace DistTestCore OnEachCodexNode(node => { - var m = (MetricsAccess)node.Metrics; - metricsDownloader.DownloadAllMetricsForNode(node.GetName(), m); + var m = node.Metrics as MetricsAccess; + if (m != null) + { + metricsDownloader.DownloadAllMetricsForNode(node.GetName(), m); + } }); }