Fix format of infiniband collector

This commit is contained in:
Thomas Roehl 2021-10-08 13:27:36 +02:00
parent cdc253b569
commit 7f1694adc7

View File

@ -25,11 +25,11 @@ func (m *InfinibandCollector) Init() error {
m.tags = map[string]string{"type": "node"} m.tags = map[string]string{"type": "node"}
_, err := ioutil.ReadFile(string(LIDFILE)) _, err := ioutil.ReadFile(string(LIDFILE))
if err == nil { if err == nil {
_, err = ioutil.ReadFile(string(PERFQUERY)) _, err = ioutil.ReadFile(string(PERFQUERY))
if err == nil { if err == nil {
m.init = true m.init = true
} }
} }
return err return err
} }