Skip to content

Commit

Permalink
strict check of datarecipient_prometheus_snmp type
Browse files Browse the repository at this point in the history
  • Loading branch information
lausser committed Feb 16, 2024
1 parent fa05acb commit 9cdb7ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion recipes/default/classes/datarecipient_prometheus_snmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 9cdb7ca

Please sign in to comment.