From 9cdb7cab1489afcc29ac0fe1de2e531b5b295692 Mon Sep 17 00:00:00 2001 From: Gerhard Lausser Date: Fri, 16 Feb 2024 15:30:54 +0100 Subject: [PATCH] strict check of datarecipient_prometheus_snmp type --- Changelog | 2 ++ recipes/default/classes/datarecipient_prometheus_snmp.py | 2 +- setup.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 0dc8d45..40322c0 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +* 2024-02-16 10.2.1.1 + check type of datarecipient_prometheus_snmp strict * 2024-02-16 10.2.1 add a filter to datasource_csvfile (filter_column attribute) * 2024-02-14 10.2 diff --git a/recipes/default/classes/datarecipient_prometheus_snmp.py b/recipes/default/classes/datarecipient_prometheus_snmp.py index a2bf8a1..5fe4312 100644 --- a/recipes/default/classes/datarecipient_prometheus_snmp.py +++ b/recipes/default/classes/datarecipient_prometheus_snmp.py @@ -18,7 +18,7 @@ logger = logging.getLogger('coshsh') def __dr_ident__(params={}): - if coshsh.util.compare_attr("type", params, "snmp_exporter"): + if coshsh.util.compare_attr("type", params, "^snmp_exporter$"): return DatarecipientPrometheusSnmpExporter diff --git a/setup.py b/setup.py index 8ea3ade..00c056b 100755 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ def run(self): setup(name='coshsh', - version='10.2.1', + version='10.2.1.1', setup_requires=['wheel'], description='Coshsh - config generator for monitoring systems', long_description=open('README.md').read(),