From 93d16a46036d27629c1f5e081681924f9e1d4d64 Mon Sep 17 00:00:00 2001
From: Daniel Nelson <daniel@wavesofdawn.com>
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 dda115d0..bc130363 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]))
 		}
-- 
GitLab