def valid_id(opts, id_):
    '''
    Returns if the passed id is valid
    '''
    try:
        return bool(clean_path(opts['pki_dir'], id_))
    except (__HOLE__, KeyError) as e:
        return False
dataset/ETHPy150Open saltstack/salt/salt/utils/verify.py/valid_id