Ensures that the named label is absent from the node.

    name
        The name of the label

    node
        The name of the node

def node_label_absent(name, node, **kwargs):
    '''
    Ensures that the named label is absent from the node.

    name
        The name of the label

    node
        The name of the node
    '''

    ret = {'name': name,
           'changes': {},
           'result': False,
           'comment': ''}

    labels = __salt__['kubernetes.node_labels'](node, **kwargs)

    if name not in labels:
        ret['result'] = True if not __opts__['test'] else None
        ret['comment'] = 'The label does not exist'
        return ret

    if __opts__['test']:
        ret['comment'] = 'The label is going to be deleted'
        ret['result'] = None
        return ret

    __salt__['kubernetes.node_remove_label'](
        node_name=node,
        label_name=name,
        **kwargs)

    ret['result'] = True
    ret['changes'] = {
        'kubernetes.node_label': {
            'new': 'absent', 'old': 'present'}}
    ret['comment'] = 'Label removed from node'

    return ret