fix(inputs.temp): Ignore warnings, return errors (#13307)
This commit is contained in:
parent
df166cfbcc
commit
ef8484aab3
|
|
@ -218,7 +218,7 @@ func (s *SystemPS) Temperature() ([]host.TemperatureStat, error) {
|
|||
temp, err := host.SensorsTemperatures()
|
||||
if err != nil {
|
||||
var hostWarnings *host.Warnings
|
||||
if errors.As(err, &hostWarnings) {
|
||||
if !errors.As(err, &hostWarnings) {
|
||||
return temp, err
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue