Skip to content

Commit

Permalink
go.d storcli: fix unmarshal driveInfo (netdata#18466)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5225687)
  • Loading branch information
ilyam8 authored and stelfrag committed Sep 6, 2024
1 parent 2d58d02 commit 98c5645
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/go/plugin/go.d/modules/storcli/collect_drives.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ type drivesInfoResponse struct {
type (
driveInfo struct {
EIDSlt string `json:"EID:Slt"`
DID int `json:"DID"`
State string `json:"State"`
DG int `json:"DG"`
Size string `json:"Size"`
Intf string `json:"Intf"`
Med string `json:"Med"`
SED string `json:"SED"`
PI string `json:"PI"`
SeSz string `json:"SeSz"`
Model string `json:"Model"`
Sp string `json:"Sp"`
Type string `json:"Type"`
//DID int `json:"DID"`
//State string `json:"State"`
//DG int `json:"DG"` // FIX: can be integer or "-"
//Size string `json:"Size"`
//Intf string `json:"Intf"`
Med string `json:"Med"`
//SED string `json:"SED"`
//PI string `json:"PI"`
//SeSz string `json:"SeSz"`
//Model string `json:"Model"`
//Sp string `json:"Sp"`
//Type string `json:"Type"`
}
driveState struct {
MediaErrorCount storNumber `json:"Media Error Count"`
Expand Down

0 comments on commit 98c5645

Please sign in to comment.