Module: check_mk
Branch: master
Commit: d5701e6c468e2ec34a5ecf5b482a4b0aa44f241e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d5701e6c468e2e…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed May 2 12:38:57 2018 +0200
De-obfuscate naming.
Change-Id: I854515407c1bdc947d4bb299f7d543ed40800db8
---
cmk/ec/main.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmk/ec/main.py b/cmk/ec/main.py
index 428d030..65cba59 100644
--- a/cmk/ec/main.py
+++ b/cmk/ec/main.py
@@ -594,7 +594,7 @@ class SNMPTrapTranslator(object):
self._logger.warning('Failed to translate OIDs, no modules loaded (see
above)')
return [(str(oid), str(value)) for oid, value in var_bind_list]
- def translate(oid, value):
+ def do_translate(oid, value):
# Disable mib_var[0] type detection
# pylint: disable=no-member
mib_var =
pysnmp.smi.rfc1902.ObjectType(pysnmp.smi.rfc1902.ObjectIdentity(oid),
value).resolveWithMib(self._mib_resolver)
@@ -607,7 +607,7 @@ class SNMPTrapTranslator(object):
for oid, value in var_bind_list:
try:
- node, translated_oid, translated_value = translate(oid, value)
+ node, translated_oid, translated_value = do_translate(oid, value)
if hasattr(node, "getUnits"):
translated_value += ' ' + node.getUnits()