Fix glob command to collect pci device information

This commit is contained in:
Alexander Grothe 2018-04-20 11:06:45 +02:00
parent 4f857589d9
commit 85fe14ffd2
2 changed files with 2 additions and 2 deletions

View File

@ -4623,7 +4623,7 @@ vendor_dict = {
}
def get_pci_devices():
for device in glob.glob('/sys/devices/pci*/*:*:*/*:*:*/'):
for device in glob.glob('/sys/devices/pci*/*:*:*/'):
try:
with open(os.path.join(device, 'device')) as d:
product_id = int(d.read().strip(), 16)

View File

@ -81,7 +81,7 @@ vendor_dict = {
}
def get_pci_devices():
for device in glob.glob('/sys/devices/pci*/*:*:*/*:*:*/'):
for device in glob.glob('/sys/devices/pci*/*:*:*/'):
try:
with open(os.path.join(device, 'device')) as d:
product_id = int(d.read().strip(), 16)