Skip to content

Commit

Permalink
Fix ENV variable error introduced with serverport parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
DRuggeri committed Nov 30, 2023
1 parent 15f476a commit acbcd5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nut_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ var (
).Envar("NUT_EXPORTER_SERVER").Default("127.0.0.1").String()

serverport = kingpin.Flag(
"nut.serverport", "Port on the NUT server to connect to. ($NUT_EXPORTER_SERVER)",
).Envar("NUT_EXPORTER_SERVER").Default("3493").Int()
"nut.serverport", "Port on the NUT server to connect to. ($NUT_EXPORTER_SERVERPORT)",
).Envar("NUT_EXPORTER_SERVERPORT").Default("3493").Int()

nutUsername = kingpin.Flag(
"nut.username", "If set, will authenticate with this username to the server. Password must be set in NUT_EXPORTER_PASSWORD environment variable. ($NUT_EXPORTER_USERNAME)",
Expand Down

0 comments on commit acbcd5c

Please sign in to comment.