fix bug remove usb nets iface

This commit is contained in:
Cayo Puigdefabregas 2024-09-26 10:10:15 +02:00
parent 59f6ac705c
commit 1a28e071e9
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from utils.constants import ALGOS, CHASSIS_DH
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']]