Closed wwitzel3 closed 5 months ago
The work around for now is to use raw=True
to avoid going through the step of transforming the data to the types defined in the schema.
Thank you for reporting this! I didn't realize that field would be a non-integer value. Sounds like I should just keep that a string field. (no integer conversion)
This is fixed in the dev
branch. This will make it into the next release.
https://github.com/kellyjonbrazil/jc/blob/dev/jc/parsers/lspci.py
You can test by copying the parser file above into your parser plugin folder:
$HOME/.local/share/jc/jcparsers
$HOME/Library/Application Support/jc/jcparsers
$LOCALAPPDATA\jc\jc\jcparsers
Fixed in v1.25.3
My system has some output from
lspci
that is as follows:This PhySlot fails to parse with
jc
because of the attempt to cast255-2
to an integer.https://github.com/kellyjonbrazil/jc/blob/master/jc/parsers/lspci.py#L162