Skip to content

Commit

Permalink
Use auto type detection for scanned devices in smart input (#3561)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Dec 9, 2017
1 parent 88746b0 commit 93d16a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/smart/smart.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (m *Smart) scan() ([]string, error) {

devices := []string{}
for _, line := range strings.Split(string(out), "\n") {
dev := strings.Split(line, "#")
dev := strings.Split(line, " ")
if len(dev) > 1 && !excludedDev(m.Excludes, strings.TrimSpace(dev[0])) {
devices = append(devices, strings.TrimSpace(dev[0]))
}
Expand Down

0 comments on commit 93d16a4

Please sign in to comment.