Skip to content

Commit

Permalink
Revert "fix: panic is no mibs folder is found (influxdata#10301)"
Browse files Browse the repository at this point in the history
This reverts commit e00147d.
  • Loading branch information
nward committed Jan 12, 2022
1 parent bf29b61 commit 7aa4dab
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/snmp/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ func LoadMibsFromPath(paths []string, log telegraf.Logger) error {
appendPath(mibPath)
folders = append(folders, mibPath)
err := filepath.Walk(mibPath, func(path string, info os.FileInfo, err error) error {
if info == nil {
return fmt.Errorf("no mibs found")
}
// symlinks are files so we need to double check if any of them are folders
// Will check file vs directory later on
if info.Mode()&os.ModeSymlink != 0 {
Expand Down

0 comments on commit 7aa4dab

Please sign in to comment.