def returner(ret):

    _options = _get_options(ret)
    log.debug('_options {0}'.format(_options))
    _options['hostname'] = ret.get('id')

    if 'url' not in _options or _options['url'] == '':
        log.error('nagios_nrdp.url not defined in salt config')
        return

    if 'token' not in _options or _options['token'] == '':
        log.error('nagios_nrdp.token not defined in salt config')
        return

    xml = _prepare_xml(options=_options, state=ret['return'])
    res = _post_data(options=_options, xml=xml)

    return res
Expected simple_unlimited_args_kwargs __doc__
dataset/ETHPy150Open saltstack/salt/salt/returners/nagios_return.py/returner--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/templates/templatetags/custom.py/simple_unlimited_args_kwargs