From 297282cf78bf684e82837e2face541cd6972d688 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Fri, 8 Dec 2017 18:03:12 -0800 Subject: [PATCH] Use auto type detection for scanned devices in smart input (#3561) --- plugins/inputs/smart/smart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/smart/smart.go b/plugins/inputs/smart/smart.go index dda115d02..bc130363b 100644 --- a/plugins/inputs/smart/smart.go +++ b/plugins/inputs/smart/smart.go @@ -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])) }