def _check_vpc(vpc_id=None, vpc_name=None, region=None, key=None, keyid=None,
               profile=None):
    data = __salt__['boto_vpc.get_id'](name=vpc_name, region=region,
                                       key=key, keyid=keyid, profile=profile)
    try:
        return data.get('id')
    except __HOLE__:
        return None
    except KeyError:
        return None
dataset/ETHPy150Open saltstack/salt/salt/modules/boto_secgroup.py/_check_vpc