def _check_cron_env(user, name, value=None):
 if (value is None):
  value = ''
 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'

def _check_cron_env ( user , name , value = None ) : if ( value is None ) : value = '' 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 .