From f42b0380a86a10422d4e4b0d940bc24537dc8e3b Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Fri, 21 Jan 2022 15:21:48 +0100 Subject: [PATCH] Update opnsense_checkmk_agent.py --- opnsense_checkmk_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opnsense_checkmk_agent.py b/opnsense_checkmk_agent.py index 964f956..4fefbb2 100644 --- a/opnsense_checkmk_agent.py +++ b/opnsense_checkmk_agent.py @@ -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: