From b19ae7a4db29a9f5e4bf6dd7a31652be26c8c11b Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Mon, 7 Feb 2022 15:43:57 +0100 Subject: [PATCH] Fix initialization of InfinibandCollector --- collectors/infinibandMetric.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collectors/infinibandMetric.go b/collectors/infinibandMetric.go index 63ae2ca..4c7615b 100644 --- a/collectors/infinibandMetric.go +++ b/collectors/infinibandMetric.go @@ -37,7 +37,7 @@ type InfinibandCollector struct { func (m *InfinibandCollector) Init(config json.RawMessage) error { // Check if already initialized - if !m.init { + if m.init { return nil }