Skip to content

Commit

Permalink
Bug identifying the path, a local variable was used instead of global…
Browse files Browse the repository at this point in the history
… one
  • Loading branch information
paha authored Jun 18, 2021
1 parent 8c8aecf commit 7eaf1b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion liquidctl-exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ var devices = map[string]map[string]prometheus.Gauge{}
var path string

func init() {
path, ok := os.LookupEnv(envPath)
p, ok := os.LookupEnv(envPath)
if !ok {
path = defaultLiquidCMD
} else {
path = p
}
log.Infof("liquidctl configured path, %s", path)

Expand Down

0 comments on commit 7eaf1b8

Please sign in to comment.