mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
do not convert physlot to int
This commit is contained in:
@ -53,7 +53,6 @@ Schema:
|
|||||||
"sdevice_id_int": integer,
|
"sdevice_id_int": integer,
|
||||||
"rev": string,
|
"rev": string,
|
||||||
"physlot": string,
|
"physlot": string,
|
||||||
"physlot_int": integer,
|
|
||||||
"progif": string,
|
"progif": string,
|
||||||
"progif_int": integer
|
"progif_int": integer
|
||||||
}
|
}
|
||||||
@ -89,7 +88,6 @@ Examples:
|
|||||||
"sdevice_id": "07e0",
|
"sdevice_id": "07e0",
|
||||||
"sdevice_id_int": 2016,
|
"sdevice_id_int": 2016,
|
||||||
"physlot": "37",
|
"physlot": "37",
|
||||||
"physlot_int": 55,
|
|
||||||
"progif": "01",
|
"progif": "01",
|
||||||
"progif_int": 1
|
"progif_int": 1
|
||||||
},
|
},
|
||||||
@ -147,4 +145,4 @@ Compatibility: linux
|
|||||||
|
|
||||||
Source: [`jc/parsers/lspci.py`](https://github.com/kellyjonbrazil/jc/blob/master/jc/parsers/lspci.py)
|
Source: [`jc/parsers/lspci.py`](https://github.com/kellyjonbrazil/jc/blob/master/jc/parsers/lspci.py)
|
||||||
|
|
||||||
Version 1.0 by Kelly Brazil (kellyjonbrazil@gmail.com)
|
Version 1.1 by Kelly Brazil (kellyjonbrazil@gmail.com)
|
||||||
|
@ -48,7 +48,6 @@ Schema:
|
|||||||
"sdevice_id_int": integer,
|
"sdevice_id_int": integer,
|
||||||
"rev": string,
|
"rev": string,
|
||||||
"physlot": string,
|
"physlot": string,
|
||||||
"physlot_int": integer,
|
|
||||||
"progif": string,
|
"progif": string,
|
||||||
"progif_int": integer
|
"progif_int": integer
|
||||||
}
|
}
|
||||||
@ -84,7 +83,6 @@ Examples:
|
|||||||
"sdevice_id": "07e0",
|
"sdevice_id": "07e0",
|
||||||
"sdevice_id_int": 2016,
|
"sdevice_id_int": 2016,
|
||||||
"physlot": "37",
|
"physlot": "37",
|
||||||
"physlot_int": 55,
|
|
||||||
"progif": "01",
|
"progif": "01",
|
||||||
"progif_int": 1
|
"progif_int": 1
|
||||||
},
|
},
|
||||||
@ -123,7 +121,7 @@ import jc.utils
|
|||||||
|
|
||||||
class info():
|
class info():
|
||||||
"""Provides parser metadata (version, author, etc.)"""
|
"""Provides parser metadata (version, author, etc.)"""
|
||||||
version = '1.0'
|
version = '1.1'
|
||||||
description = '`lspci -mmv` command parser'
|
description = '`lspci -mmv` command parser'
|
||||||
author = 'Kelly Brazil'
|
author = 'Kelly Brazil'
|
||||||
author_email = 'kellyjonbrazil@gmail.com'
|
author_email = 'kellyjonbrazil@gmail.com'
|
||||||
@ -149,7 +147,7 @@ def _process(proc_data: List[JSONDictType]) -> List[JSONDictType]:
|
|||||||
"""
|
"""
|
||||||
int_list: set[str] = {
|
int_list: set[str] = {
|
||||||
'domain', 'bus', 'dev', 'function', 'class_id', 'vendor_id', 'device_id',
|
'domain', 'bus', 'dev', 'function', 'class_id', 'vendor_id', 'device_id',
|
||||||
'svendor_id', 'sdevice_id', 'physlot', 'progif'
|
'svendor_id', 'sdevice_id', 'progif'
|
||||||
}
|
}
|
||||||
|
|
||||||
new_list: List[JSONDictType] = []
|
new_list: List[JSONDictType] = []
|
||||||
|
2
tests/fixtures/ubuntu-20.10/lspci-mmv.json
vendored
2
tests/fixtures/ubuntu-20.10/lspci-mmv.json
vendored
File diff suppressed because one or more lines are too long
2
tests/fixtures/ubuntu-20.10/lspci-nmmv.json
vendored
2
tests/fixtures/ubuntu-20.10/lspci-nmmv.json
vendored
File diff suppressed because one or more lines are too long
2
tests/fixtures/ubuntu-20.10/lspci-nnmmv.json
vendored
2
tests/fixtures/ubuntu-20.10/lspci-nnmmv.json
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user