mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-04-08 22:45:55 +02:00
changed error to only return
This commit is contained in:
parent
40915c16ef
commit
4c5a915f74
@ -4,7 +4,6 @@ import (
|
|||||||
"bufio"
|
"bufio"
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
@ -131,7 +130,7 @@ func (m *BeegfsMetaCollector) Read(interval time.Duration, output chan lp.CCMetr
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(mountpoints) == 0 {
|
if len(mountpoints) == 0 {
|
||||||
return errors.New("Could not find any BeeGFS mountpoint")
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, mountpoint := range mountpoints {
|
for _, mountpoint := range mountpoints {
|
||||||
|
@ -4,7 +4,6 @@ import (
|
|||||||
"bufio"
|
"bufio"
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
@ -125,7 +124,7 @@ func (m *BeegfsStorageCollector) Read(interval time.Duration, output chan lp.CCM
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(mountpoints) == 0 {
|
if len(mountpoints) == 0 {
|
||||||
return errors.New("Could not find any BeeGFS mountpoint")
|
return
|
||||||
}
|
}
|
||||||
// collects stats for each BeeGFS on Demand FS
|
// collects stats for each BeeGFS on Demand FS
|
||||||
for _, mountpoint := range mountpoints {
|
for _, mountpoint := range mountpoints {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user