def dhcp_options_absent(name=None, dhcp_options_id=None, region=None, key=None, keyid=None, profile=None):
    ret = {'name': name,
           'result': True,
           'comment': '',
           'changes': {}
           }

    r = __salt__['boto_vpc.get_resource_id']('dhcp_options', name=name,
                                             region=region, key=key,
                                             keyid=keyid, profile=profile)
    if 'error' in r:
        ret['result'] = False
        ret['comment'] = 'Failed to delete DHCP options: {0}.'.format(r['error']['message'])
        return ret

    _id = r.get('id')

    if not _id:
        ret['comment'] = 'DHCP options {0} do not exist.'.format(name)
        return ret

    if __opts__['test']:
        ret['comment'] = 'DHCP options {0} are set to be deleted.'.format(name)
        ret['result'] = None
        return ret

    r = __salt__['boto_vpc.delete_dhcp_options'](dhcp_options_id=r['id'], region=region,
                                                 key=key, keyid=keyid, profile=profile)
    if not r.get('deleted'):
        ret['result'] = False
        ret['comment'] = 'Failed to delete DHCP options: {0}'.format(r['error']['message'])
        return ret

    ret['changes']['old'] = {'dhcp_options': _id}
    ret['changes']['new'] = {'dhcp_options': None}
    ret['comment'] = 'DHCP options {0} deleted.'.format(name)
    return ret
Returns shorter version (digit parts only) as string.
dataset/ETHPy150Open saltstack/salt/salt/states/boto_vpc.py/dhcp_options_absent--crossover with--dataset/ETHPy150Open codeinn/vcs/vcs/__init__.py/get_version