Fixed Typo causing Agent to fail

Typo "protocoll" instead of "protocol" caused agent to not work if the OpenVPN Server didn't have a description
This commit is contained in:
Kriegsameise 2024-11-28 16:21:36 +01:00 committed by GitHub
parent 7f7d90fab4
commit 24f551b52e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -880,7 +880,7 @@ class checkmk_checker(object):
if _server.get("disable") == '1':
continue ## FIXME OK/WARN/SKIP
## server_tls, p2p_shared_key p2p_tls
_server["name"] = _server.get("description").strip() if _server.get("description") else "OpenVPN_{protocoll}_{local_port}".format(**_server)
_server["name"] = _server.get("description").strip() if _server.get("description") else "OpenVPN_{protocol}_{local_port}".format(**_server)
_caref = _server.get("caref")
_server_cert = self._get_certificate(_server.get("certref"))