fix bug remove usb nets iface

This commit is contained in:
Cayo Puigdefabregas 2024-09-26 10:09:53 +02:00 committed by pedro
parent a0e93b8408
commit d64929eda8
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ def logs(f):
## Utility Functions for find ID ##
def get_network_cards(child, nets):
if child['id'] == 'network':
if child['id'] == 'network' and "PCI:" in child.get("businfo"):
nets.append(child)
if child.get('children'):
[get_network_cards(x, nets) for x in child['children']]