mirror of
https://github.com/bashclub/check-opnsense.git
synced 2024-11-07 16:31:58 +01:00
Update opnsense_checkmk_agent.py
This commit is contained in:
parent
e8e1d9022d
commit
602562e1a5
@ -167,7 +167,10 @@ class checkmk_checker(object):
|
|||||||
_ret = filter(lambda x: x.get("common_name") == cn and x.get("caref") == caref,self._certificate_store.values())
|
_ret = filter(lambda x: x.get("common_name") == cn and x.get("caref") == caref,self._certificate_store.values())
|
||||||
else:
|
else:
|
||||||
_ret = filter(lambda x: x.get("common_name") == cn,self._certificate_store.values())
|
_ret = filter(lambda x: x.get("common_name") == cn,self._certificate_store.values())
|
||||||
return next(_ret) if _ret else {}
|
try:
|
||||||
|
return next(_ret)
|
||||||
|
except StopIteration:
|
||||||
|
return {}
|
||||||
|
|
||||||
def get_opnsense_interfaces(self):
|
def get_opnsense_interfaces(self):
|
||||||
_ifs = {}
|
_ifs = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user