Skip to content

Commit

Permalink
fix(inputs.http): Use correct token variable
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Nov 27, 2023
1 parent 68f787c commit 032e76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (h *HTTP) gatherURL(acc telegraf.Accumulator, url string) error {
token.Destroy()
request.Header.Set("Authorization", bearer)
} else if h.TokenFile != "" {
token, err := os.ReadFile(h.BearerToken)
token, err := os.ReadFile(h.TokenFile)
if err != nil {
return err
}
Expand Down

0 comments on commit 032e76f

Please sign in to comment.