def get_pci_requests_from_flavor(flavor):
 pci_requests = []
 if (('extra_specs' in flavor) and ('pci_passthrough:alias' in flavor['extra_specs'])):
  pci_requests = _translate_alias_to_requests(flavor['extra_specs']['pci_passthrough:alias'])
 return objects.InstancePCIRequests(requests=pci_requests)

def get_pci_requests_from_flavor ( flavor ) : pci_requests = [ ] if ( ( 'extra_specs' in flavor ) and ( 'pci_passthrough:alias' in flavor [ 'extra_specs' ] ) ) : pci_requests = _translate_alias_to_requests ( flavor [ 'extra_specs' ] [ 'pci_passthrough:alias' ] ) return objects . InstancePCIRequests ( requests = pci_requests )
get flavors pci request .