def endpoint_absent(name, profile=None, **connection_args):
    ret = {'name': name,
           'changes': {},
           'result': True,
           'comment': 'endpoint for service "{0}" is already absent'.format(name)}

    # Check if service is present
    endpoint = __salt__['keystone.endpoint_get'](name,
                                                 profile=profile,
                                                 **connection_args)
    if not endpoint:
        return ret
    else:
        if __opts__['test']:
            ret['result'] = None
            ret['comment'] = 'Endpoint for service "{0}" will be deleted'.format(name)
            ret['changes']['endpoint'] = 'Will be deleted'
            return ret
        # Delete service
        __salt__['keystone.endpoint_delete'](name,
                                             profile=profile,
                                             **connection_args)
        ret['comment'] = 'Endpoint for service "{0}" has been deleted'.format(name)
        ret['changes']['endpoint'] = 'Deleted'
    return ret
Sets or changes the operation name.
dataset/ETHPy150Open saltstack/salt/salt/states/keystone.py/endpoint_absent--crossover with--dataset/ETHPy150Open opentracing/opentracing-python/opentracing/span.py/Span.set_operation_name