

def _get_options(ret=None):
    '\n    Returns options used for the MySQL connection.\n    '
    defaults = {
        'host': 'salt',
        'user': 'salt',
        'pass': 'salt',
        'db': 'salt',
        'port': 3306,
        'ssl_ca': None,
        'ssl_cert': None,
        'ssl_key': None,
    }
    attrs = {
        'host': 'host',
        'user': 'user',
        'pass': 'pass',
        'db': 'db',
        'port': 'port',
        'ssl_ca': 'ssl_ca',
        'ssl_cert': 'ssl_cert',
        'ssl_key': 'ssl_key',
    }
    _options = salt.returners.get_returner_options(__virtualname__, ret, attrs, __salt__=__salt__, __opts__=__opts__, defaults=defaults)
    if ('port' in _options):
        _options['port'] = int(ret['port'])
    return _options

dataset/ETHPy150Open saltstack/salt/salt/returners/mysql.py _get_options/VarMisuse@149/266 `_options`->`ret`