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 bitcharmer committed Oct 18, 2019
1 parent b1b6cfc commit 728c416
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 728c416

Please sign in to comment.