Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit 6e94cad

Browse files
author
Addon Factory template
committed
fix: correct function for python version
1 parent c2c9a8f commit 6e94cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunk_connect_for_snmp_mib_server/translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def format_metric_data(self, var_bind):
353353
snmp_index = translated_oid.split(".")[-1]
354354
if snmp_index.isnumeric():
355355
metric_data["snmp_index"] = snmp_index
356-
translated_oid = translated_oid.removesuffix(f".{snmp_index}")
356+
translated_oid = translated_oid[: -len(f".{snmp_index}")]
357357
metric_data[
358358
"metric_name"
359359
] = f'sc4snmp.{translated_oid.replace(".","_").replace("::", ".")}'

0 commit comments

Comments
 (0)