Closed zvfvrv closed 1 year ago
Hi @zvfvrv,
thank you fro the PR?
But in general the only difference is the type
field, correct?
wouldn't it be easier to just add the the field to the regular parsing? Or did the parsing of the GPU break the CPU parsing code?
Hi @bb-Ricardo ,
yes correct the only difference is the type and the serial number but yes can be handled with a few check based on the type.
The reason why I opted to divide the parsing between them is that with the GPU most of the fileds are set to null
.
But yes maybe is better to keep it simple adding the type
field and some minor check based on that.
This PR aims to add support for GPU processors during the inventory export. Unfortunately the "source_data" related to the retrieved GPU is a bit sparse in content compared to that of the CPUs, which is why there are few fields valued. I'm attaching an example of source_data where I proceeded to make a small redaction on the serial and part number. The rest is intact:
Thanks
Tested on Dell PowerEdge R750xa