Skip to content

Commit

Permalink
Use case insensitive serial numer match in smart input (influxdata#6464)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybrzeski authored and danielnelson committed Sep 30, 2019
1 parent 8e7f841 commit 444c50c
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 @@ -23,7 +23,7 @@ var (
// Model Number: TS128GMTE850
modelInfo = regexp.MustCompile("^(Device Model|Product|Model Number):\\s+(.*)$")
// Serial Number: S0X5NZBC422720
serialInfo = regexp.MustCompile("^Serial Number:\\s+(.*)$")
serialInfo = regexp.MustCompile("(?i)^Serial Number:\\s+(.*)$")
// LU WWN Device Id: 5 002538 655584d30
wwnInfo = regexp.MustCompile("^LU WWN Device Id:\\s+(.*)$")
// User Capacity: 251,000,193,024 bytes [251 GB]
Expand Down

0 comments on commit 444c50c

Please sign in to comment.