Skip to content

Commit

Permalink
Update repos/system_upgrade/common/libraries/persistentnetnames.py
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Hečko <[email protected]>
  • Loading branch information
pirat89 and MichalHe authored Feb 28, 2024
1 parent b8f0554 commit 1f5fb28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def interfaces():
attrs['driver'] = dev['ID_NET_DRIVER']
attrs['mac'] = dev.attributes.get('address')
attrs['vendor'] = dev.get('ID_VENDOR_ID', '')
if not attrs['vendor']:
if attrs['vendor']:
attrs['pci_info'] = PCIAddress(**pci_info(dev['ID_PATH']))
else:
# non-PCI
Expand Down

0 comments on commit 1f5fb28

Please sign in to comment.