'Filter a list of hosts based on RequestSpec.'

def _filter_hosts(self, hosts, spec_obj):

    ignore_hosts = (spec_obj.ignore_hosts or [])
    hosts = [host for host in hosts if (host not in ignore_hosts)]
    return hosts
