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

View file

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