Skip to content

Commit

Permalink
Use case insensitive serial numer match in smart input (#6464)
Browse files Browse the repository at this point in the history
(cherry picked from commit fc1b1e8)
  • Loading branch information
gregorybrzeski authored and danielnelson committed Sep 30, 2019
1 parent 0c1fb6b commit 3605d87
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 @@ -24,7 +24,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 3605d87

Please sign in to comment.