mirror of
https://github.com/bashclub/check-opnsense.git
synced 2024-12-25 00:10:11 +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())
|
||||
else:
|
||||
_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):
|
||||
_ifs = {}
|
||||
|
Loading…
Reference in New Issue
Block a user