From 995bf783793762d0b2e9befd124b5e07c3a042c4 Mon Sep 17 00:00:00 2001 From: Robert Latta <robert.latta@geant.org> Date: Thu, 2 May 2024 16:16:43 +0100 Subject: [PATCH] cast nokia snmp indes to int RE. DBOARD3-937 --- inventory_provider/routes/classifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory_provider/routes/classifier.py b/inventory_provider/routes/classifier.py index 5266bf84..4c9dcd63 100644 --- a/inventory_provider/routes/classifier.py +++ b/inventory_provider/routes/classifier.py @@ -248,7 +248,7 @@ def _link_interface_info(r, hostname, interface): if snmp_info: snmp_info = json.loads(snmp_info.decode('utf-8')) ifc_info['snmp'] = { - 'index': snmp_info['index'] + 'index': int(snmp_info['index']) } if 'communities' in snmp_info: ifc_info['snmp']['community'] = snmp_info['communities']['dashboard'] -- GitLab