From dd6fe32a40f47ebb00b3cedf9e01fcabda830b9e Mon Sep 17 00:00:00 2001 From: rafsalas19 <70273488+rafsalas19@users.noreply.github.com> Date: Wed, 17 May 2023 13:02:19 -0400 Subject: [PATCH] fix bug related to accelerated network (#57) Co-authored-by: Ubuntu --- src/worker/exporters/node_exporter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/worker/exporters/node_exporter.py b/src/worker/exporters/node_exporter.py index 152d5a3..bdf6d41 100644 --- a/src/worker/exporters/node_exporter.py +++ b/src/worker/exporters/node_exporter.py @@ -342,6 +342,8 @@ def init_ib_config(): config['counter']['link_flap'] = {} result = result.split('\n')[1:] for ib in result: + if "ib" not in ib: + continue if len(ib): mapping = re.search(r"ib\d", ib.strip()).group() config['counter']['link_flap'][mapping] = {}