@cryptotaxi247 / netdata-1 / commits / 522568762

go.d storcli: fix unmarshal driveInfo (#18466)

Ilya Mashchenko committed Sep 3, 2024 at 19:38 UTC 52256876208de883efd5065d2682e4216c2d9668
1 file changed +12 -12
src/go/plugin/go.d/modules/storcli/collect_drives.go
+12 -12
@@ -23,18 +23,18 @@ type drivesInfoResponse struct {
23 type (
24 driveInfo struct {
25 EIDSlt string `json:"EID:Slt"`
26 - DID int `json:"DID"`
27 - State string `json:"State"`
28 - DG int `json:"DG"`
29 - Size string `json:"Size"`
30 - Intf string `json:"Intf"`
31 - Med string `json:"Med"`
32 - SED string `json:"SED"`
33 - PI string `json:"PI"`
34 - SeSz string `json:"SeSz"`
35 - Model string `json:"Model"`
36 - Sp string `json:"Sp"`
37 - Type string `json:"Type"`
26 + //DID int `json:"DID"`
27 + //State string `json:"State"`
28 + //DG int `json:"DG"` // FIX: can be integer or "-"
29 + //Size string `json:"Size"`
30 + //Intf string `json:"Intf"`
31 + Med string `json:"Med"`
32 + //SED string `json:"SED"`
33 + //PI string `json:"PI"`
34 + //SeSz string `json:"SeSz"`
35 + //Model string `json:"Model"`
36 + //Sp string `json:"Sp"`
37 + //Type string `json:"Type"`
38 }
39 driveState struct {
40 MediaErrorCount storNumber `json:"Media Error Count"`