def _check_cron_env(user,
                    name,
                    value=None):
    if value is None:
        value = ""  # Matching value set in salt.modules.cron._render_tab
    lst = __salt__['cron.list_tab'](user)
    for env in lst['env']:
        if name == env['name']:
            if value != env['value']:
                return 'update'
            return 'present'
    return 'absent'
Return the environment changes
dataset/ETHPy150Open saltstack/salt/salt/states/cron.py/_check_cron_env