'Return true if the host has the required PCI devices.'

def host_passes(self, host_state, spec_obj):

    pci_requests = spec_obj.pci_requests
    if ((not pci_requests) or (not pci_requests.requests)):
        return True
    if ((not host_state.pci_stats) or (not host_state.pci_stats.support_requests(pci_requests.requests))):
        LOG.debug("%(host_state)s    doesn't    have    the    required    PCI    devices    (%(requests)s)", {'host_state': host_state, 'requests': pci_requests})
        return False
    return True
