From a210a6fdf64f9df910a7aab0b6509881302a304d Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 21 Feb 2024 14:11:49 -0500 Subject: [PATCH] Drop hostname formatter completely -- the default jobmetricformatter is fine here and does the same thing --- lib/galaxy/job_metrics/instrumenters/hostname.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/galaxy/job_metrics/instrumenters/hostname.py b/lib/galaxy/job_metrics/instrumenters/hostname.py index d4d01402a879..867dd627b008 100644 --- a/lib/galaxy/job_metrics/instrumenters/hostname.py +++ b/lib/galaxy/job_metrics/instrumenters/hostname.py @@ -4,21 +4,14 @@ from typing import Any from . import InstrumentPlugin -from .. import formatting log = logging.getLogger(__name__) -class HostnameFormatter(formatting.JobMetricFormatter): - def format(self, key: str, value: Any): - return formatting.FormattedMetric(key, value) - - class HostnamePlugin(InstrumentPlugin): """Gather hostname""" plugin_type = "hostname" - formatter = HostnameFormatter() def __init__(self, **kwargs): pass