Skip to content

Commit

Permalink
Allow telegraf.d symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann Diorcet committed Sep 27, 2024
1 parent dcfadf8 commit f9a7eed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ func sliceContains(name string, list []string) bool {
// WalkDirectory collects all toml files that need to be loaded
func WalkDirectory(path string) ([]string, error) {
var files []string
path, _ = filepath.EvalSymlinks(path)
walkfn := func(thispath string, info os.FileInfo, _ error) error {
if info == nil {
log.Printf("W! Telegraf is not permitted to read %s", thispath)
Expand Down

0 comments on commit f9a7eed

Please sign in to comment.