def _return_servers(context, *args, **kwargs):
    servers_list = []
    marker = None
    limit = None
    found_marker = False
    if ('marker' in kwargs):
        marker = kwargs['marker']
    if ('limit' in kwargs):
        limit = kwargs['limit']
    if ('columns_to_join' in kwargs):
        kwargs.pop('columns_to_join')
    if ('use_slave' in kwargs):
        kwargs.pop('use_slave')
    if ('sort_keys' in kwargs):
        kwargs.pop('sort_keys')
    if ('sort_dirs' in kwargs):
        kwargs.pop('sort_dirs')
    for i in range(num_servers):
        uuid = get_fake_uuid(i)
        server = stub_instance(id=(i + 1), uuid=uuid, **kwargs)
        servers_list.append(server)
        if ((marker is not None) and (uuid == marker)):
            found_marker = True
            servers_list = []
    if ((marker is not None) and (not found_marker)):
        raise exc.MarkerNotFound(marker=marker)
    if (limit is not None):
        servers_list = servers_list[:limit]
    return servers_list
def _return_servers(context, *args, **kwargs):
    servers_list = []
    marker = None
    limit = None
    found_marker = False
    if ('marker' in kwargs):
        marker = kwargs['marker']
    if ('limit' in kwargs):
        limit = kwargs['limit']
    if ('columns_to_join' in kwargs):
        kwargs.pop('columns_to_join')
    if ('use_slave' in kwargs):
        kwargs.pop('use_slave')
    if ('sort_keys' in kwargs):
        kwargs.pop('sort_keys')
    if ('sort_dirs' in kwargs):
        kwargs.pop('sort_dirs')
    for i in range(num_servers):
        uuid = get_fake_uuid(i)
        server = stub_instance(id=(i + 1), uuid=uuid, **kwargs)
        servers_list.append(server)
        if ((marker is not None) and (uuid == marker)):
            found_marker = True
            servers_list = []
    if ((marker is not None) and (not found_marker)):
        raise exc.MarkerNotFound(marker=marker)
    if (limit is not None):
        servers_list = servers_list[:limit]
    return servers_list