def validate_endpoint_from_source(endpoint_name, source):
    """
    Ensuring that the specified endpoint from the given source exists.
    :param endpoint_name:
    :param source:
    :return:
    """
    if endpoint_name and source:
        endpoint = endpoint_service.get_by_name_and_source(endpoint_name, source)

        if not endpoint:
            click.echo(f"[-] No endpoint found from source {source} with name: {endpoint_name}")
            sys.exit(1)

        return endpoint

    Ensuring that the specified endpoint from the given source exists.
    :param endpoint_name:
    :param source:
    :return:
    
lemur/certificates/cli.py