fix bug remove usb nets iface
This commit is contained in:
parent
a0e93b8408
commit
d64929eda8
|
@ -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']]
|
||||||
|
|
Loading…
Reference in New Issue