Update opnsense_checkmk_agent.py

This commit is contained in:
Thorsten Spille 2022-01-21 15:21:48 +01:00 committed by GitHub
parent 2eb6ac70c8
commit f42b0380a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -363,7 +363,7 @@ class checkmk_checker(object):
_ret = []
_gateway_items = self._config_reader().get("gateways").get("gateway_item",[])
if type(_gateway_items) != list:
_gateway_items = [_gateway_items]
_gateway_items = [_gateway_items] if _gateway_items else []
_interfaces = self._config_reader().get("interfaces",{})
_ipaddresses = self.get_opnsense_ipaddr()
for _gateway in _gateway_items: