def get_subnet_flow_logs_list(current_config, subnet):
    """
    Return the flow logs that cover a given subnet

    :param current_config:
    :param subnet: the subnet that the flow logs should cover
    :return:
    """
    flow_logs_list = []
    for flow_log in current_config.flow_logs:
        if current_config.flow_logs[flow_log]['ResourceId'] == subnet[
            'SubnetId'] or current_config.flow_logs[flow_log]['ResourceId'
            ] == subnet['VpcId']:
            flow_logs_list.append(flow_log)
    return flow_logs_list
