def get_jid(jid):
    '''
    Return the information returned when the specified job id was executed
    '''
    with _get_serv(ret=None, commit=True) as cur:

        sql = '''SELECT id, full_ret FROM `salt_returns`
                WHERE `jid` = %s'''

        cur.execute(sql, (jid,))
        data = cur.fetchall()
        ret = {}
        if data:
            for minion, full_ret in data:
                ret[minion] = salt.utils.json.loads(full_ret)
        return ret
def get_jid ( jid ) : with _get_serv ( ret = None , commit = True ) as cur : sql = '''SELECT id, full_ret FROM `salt_returns`
                WHERE `jid` = %s''' cur . execute ( sql , ( jid , ) ) data = cur . fetchall ( ) ret = { } if data : for minion , full_ret in data : ret [ minion ] = salt . utils . json . loads ( full_ret ) return ret
Return the information returned when the specified job id was executed