Fix iteration over list
This commit is contained in:
parent
0cd621b6a6
commit
d08d060439
@ -3847,10 +3847,10 @@ def main():
|
|||||||
|
|
||||||
if collect_gpus:
|
if collect_gpus:
|
||||||
gpus = format_gpu_device_list(get_pci_devices())
|
gpus = format_gpu_device_list(get_pci_devices())
|
||||||
nvidia_detected = any((True for gpu in gpus.items() if gpu['VendorName'] == 'nvidia'))
|
nvidia_detected = any((True for gpu in gpus if gpu['VendorName'] == 'nvidia'))
|
||||||
intel_detected = any((True for gpu in gpus.items() if gpu['VendorName'] == 'intel'))
|
intel_detected = any((True for gpu in gpus if gpu['VendorName'] == 'intel'))
|
||||||
amd_detected = any((True for gpu in gpus.items() if gpu['VendorName'] == 'amd'))
|
amd_detected = any((True for gpu in gpus if gpu['VendorName'] == 'amd'))
|
||||||
virtualbox_detected = any((True for gpu in gpus.items() if gpu['VendorName'] == 'virtualbox'))
|
virtualbox_detected = any((True for gpu in gpus if gpu['VendorName'] == 'virtualbox'))
|
||||||
|
|
||||||
if collect_acpi_power_modes:
|
if collect_acpi_power_modes:
|
||||||
acpi_power_modes = list_acpi_power_modes()
|
acpi_power_modes = list_acpi_power_modes()
|
||||||
|
@ -152,10 +152,10 @@ def main():
|
|||||||
|
|
||||||
if collect_gpus:
|
if collect_gpus:
|
||||||
gpus = format_gpu_device_list(get_pci_devices())
|
gpus = format_gpu_device_list(get_pci_devices())
|
||||||
nvidia_detected = any((True for gpu in gpus.items() if gpu['VendorName'] == 'nvidia'))
|
nvidia_detected = any((True for gpu in gpus if gpu['VendorName'] == 'nvidia'))
|
||||||
intel_detected = any((True for gpu in gpus.items() if gpu['VendorName'] == 'intel'))
|
intel_detected = any((True for gpu in gpus if gpu['VendorName'] == 'intel'))
|
||||||
amd_detected = any((True for gpu in gpus.items() if gpu['VendorName'] == 'amd'))
|
amd_detected = any((True for gpu in gpus if gpu['VendorName'] == 'amd'))
|
||||||
virtualbox_detected = any((True for gpu in gpus.items() if gpu['VendorName'] == 'virtualbox'))
|
virtualbox_detected = any((True for gpu in gpus if gpu['VendorName'] == 'virtualbox'))
|
||||||
|
|
||||||
if collect_acpi_power_modes:
|
if collect_acpi_power_modes:
|
||||||
acpi_power_modes = list_acpi_power_modes()
|
acpi_power_modes = list_acpi_power_modes()
|
||||||
|
Loading…
Reference in New Issue
Block a user