def get_jid(jid):
 with _get_serv(ret=None, commit=True) as cur:
  sql = 'SELECT id, full_ret FROM salt_returns\n                WHERE jid = %s'
  cur.execute(sql, (jid,))
  data = cur.fetchall()
  ret = {}
  if data:
   for (minion, full_ret) in data:
    ret[minion] = 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\n                WHERE jid = %s' cur . execute ( sql , ( jid , ) ) data = cur . fetchall ( ) ret = { } if data : for ( minion , full_ret ) in data : ret [ minion ] = full_ret return ret
return the information returned from a specified jid .