@@ -471,7 +471,7 @@ func parsePcieDevice(ch chan<- prometheus.Metric, systemHostName string, pcieDev
471
471
pcieDeviceState := pcieDevice .Status .State
472
472
pcieDeviceHealthState := pcieDevice .Status .Health
473
473
pcieDevicePartNumber := pcieDevice .PartNumber
474
- pcieDeviceType := fmt .Sprintf ( "%v," , pcieDevice .DeviceType )
474
+ pcieDeviceType := fmt .Sprint ( pcieDevice .DeviceType )
475
475
pcieSerialNumber := pcieDevice .SerialNumber
476
476
systemPCIeDeviceLabelValues := []string {systemHostName , "pcie_device" , pcieDeviceName , pcieDeviceID , pcieDevicePartNumber , pcieDeviceType , pcieSerialNumber }
477
477
@@ -527,9 +527,9 @@ func parseEthernetInterface(ch chan<- prometheus.Metric, systemHostName string,
527
527
func parsePcieFunction (ch chan <- prometheus.Metric , systemHostName string , pcieFunction * redfish.PCIeFunction , wg * sync.WaitGroup ) {
528
528
defer wg .Done ()
529
529
pcieFunctionName := pcieFunction .Name
530
- pcieFunctionID := fmt .Sprintf ( "%v" , pcieFunction .ID )
531
- pciFunctionDeviceclass := fmt .Sprintf ( "%v" , pcieFunction .DeviceClass )
532
- pciFunctionType := fmt .Sprintf ( "%v" , pcieFunction .FunctionType )
530
+ pcieFunctionID := fmt .Sprint ( pcieFunction .ID )
531
+ pciFunctionDeviceclass := fmt .Sprint ( pcieFunction .DeviceClass )
532
+ pciFunctionType := fmt .Sprint ( pcieFunction .FunctionType )
533
533
pciFunctionState := pcieFunction .Status .State
534
534
pciFunctionHealthState := pcieFunction .Status .Health
535
535
0 commit comments