def _get_options(ret=None):

    defaults = {'level': 'LOG_INFO',
                'facility': 'LOG_USER',
                'options': []
                }

    attrs = {'level': 'level',
             'facility': 'facility',
             'tag': 'tag',
             'options': 'options'
             }

    _options = salt.returners.get_returner_options(__virtualname__,
                                                   ret,
                                                   attrs,
                                                   __salt__=__salt__,
                                                   __opts__=__opts__,
                                                   defaults=defaults)
    return _options
Get the returner options from salt.
dataset/ETHPy150Open saltstack/salt/salt/returners/syslog_return.py/_get_options