diff --git a/pkg/device_plugin/device_plugin.go b/pkg/device_plugin/device_plugin.go index 19f06193..adf4120f 100644 --- a/pkg/device_plugin/device_plugin.go +++ b/pkg/device_plugin/device_plugin.go @@ -314,6 +314,10 @@ func getDeviceName(deviceID string) string { log.Printf("Error processing pci.ids file at line: %s", line) return deviceName } + // fix matching + if splits[0] != "" { + continue + } deviceName = strings.TrimSpace(splits[1]) deviceName = strings.ToUpper(deviceName) deviceName = strings.Replace(deviceName, "/", "_", -1)