Skip to content

Commit 70d0fbe

Browse files
authored
Merge pull request #267 from Clara12062/fix-bmc-native-panic
FIX: panic in ipmi bmc native collector
2 parents c0bb00f + 23dfedc commit 70d0fbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

collector_bmc_native.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ func (c BMCNativeCollector) Collect(_ freeipmi.Result, ch chan<- prometheus.Metr
6060
// The API looks slightly awkward here, but doing this instead of calling
6161
// client.GetSystemInfo() greatly reduces the number of required round-trips.
6262
systemInfo := ipmi.SystemInfoParams{
63+
SetInProgress: &ipmi.SystemInfoParam_SetInProgress{
64+
Value: ipmi.SetInProgress_SetComplete,
65+
},
6366
SystemFirmwareVersions: make([]*ipmi.SystemInfoParam_SystemFirmwareVersion, 0),
6467
}
6568
err = client.GetSystemInfoParamsFor(context.TODO(), &systemInfo)

0 commit comments

Comments
 (0)