def _check_pyenv(ret, user=None):
    if not __salt__['pyenv.is_installed'](user):
        ret['result'] = False
        ret['comment'] = 'pyenv is not installed.'
    return ret
Check to see if pyenv is installed.
dataset/ETHPy150Open saltstack/salt/salt/states/pyenv.py/_check_pyenv