def get_full_pci_id(pci_id):
 cmd = ("lspci -D | awk '/%s/ {print $1}'" % pci_id)
 (status, full_id) = commands.getstatusoutput(cmd)
 if (status != 0):
  return None
 return full_id

def get_full_pci_id ( pci_id ) : cmd = ( "lspci -D | awk '/%s/ {print $1}'" % pci_id ) ( status , full_id ) = commands . getstatusoutput ( cmd ) if ( status != 0 ) : return None return full_id
get full pci id of pci_id .