Allows for metrics collection when some codex groups don't have metrics enabled.

This commit is contained in:
benbierens 2023-04-13 15:04:01 +02:00
parent 9a45883278
commit 07fbda3f9a
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 5 additions and 2 deletions

View File

@ -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);
}
});
}