Module: check_mk
Branch: master
Commit: f837247d94e6caf891ae81d916a8f3f685b52fe9
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f837247d94e6ca…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Jan 16 17:23:45 2019 +0100
Fixed 'TypeError' in SNMP datasource
Change-Id: Ifb1daf7396050150d587f2ee6056dfc0a59684d9
---
cmk_base/data_sources/snmp.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk_base/data_sources/snmp.py b/cmk_base/data_sources/snmp.py
index a0ec428..dd8b51e 100644
--- a/cmk_base/data_sources/snmp.py
+++ b/cmk_base/data_sources/snmp.py
@@ -195,7 +195,7 @@ class SNMPDataSource(DataSource):
# This checks data is configured to be persisted (snmp_check_interval) and recent enough.
# Skip gathering new data here. The persisted data will be added latera
- if section_name in self._persisted_sections:
+ if self._persisted_sections and section_name in self._persisted_sections:
self._logger.debug(
"%s: Skip fetching data (persisted info exists)" % (check_plugin_name))
continue