def _has_candidates(self, request):
    for (demand_name, demand) in request.demands.items():
        LOG.debug('Req Available resources: {} {}'.format(demand_name, len(request.demands[demand_name].resources)))
        if (len(demand.resources) == 0):
            LOG.debug('No more candidates for demand {}'.format(demand_name))
            return False
    return True
def _has_candidates(self, request):
    for (demand_name, demand) in request.demands.items():
        LOG.debug('Req Available resources: {} {}'.format(demand_name, len(request.demands[demand_name].resources)))
        if (len(demand.resources) == 0):
            LOG.debug('No more candidates for demand {}'.format(demand_name))
            return False
    return True