def returner(ret):
    '''
    Return data to an odbc server
    '''
    conn = _get_conn(ret)
    cur = conn.cursor()
    sql = '''INSERT INTO salt_returns
            (fun, jid, retval, id, success, full_ret)
            VALUES (?, ?, ?, ?, ?, ?)'''
    cur.execute(
        sql, (
            ret['fun'],
            ret['jid'],
            salt.utils.json.dumps(ret['return']),
            ret['id'],
            ret['success'],
            salt.utils.json.dumps(ret)
        )
    )
    _close_conn(conn)
def returner ( ret ) : conn = _get_conn ( ret ) cur = conn . cursor ( ) sql = '''INSERT INTO salt_returns
            (fun, jid, retval, id, success, full_ret)
            VALUES (?, ?, ?, ?, ?, ?)''' cur . execute ( sql , ( ret [ 'fun' ] , ret [ 'jid' ] , salt . utils . json . dumps ( ret [ 'return' ] ) , ret [ 'id' ] , ret [ 'success' ] , salt . utils . json . dumps ( ret ) ) ) _close_conn ( conn )
Return data to an odbc server