Use auto type detection for scanned devices in smart input (#3561)
(cherry picked from commit 93d16a4603
)
This commit is contained in:
parent
994e75f1f0
commit
fd964bd4eb
|
@ -135,7 +135,7 @@ func (m *Smart) scan() ([]string, error) {
|
||||||
|
|
||||||
devices := []string{}
|
devices := []string{}
|
||||||
for _, line := range strings.Split(string(out), "\n") {
|
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])) {
|
if len(dev) > 1 && !excludedDev(m.Excludes, strings.TrimSpace(dev[0])) {
|
||||||
devices = append(devices, strings.TrimSpace(dev[0]))
|
devices = append(devices, strings.TrimSpace(dev[0]))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue