def _prior_running_states(jid):
 ret = []
 active = __salt__['saltutil.is_running']('state.*')
 for data in active:
  try:
   data_jid = int(data['jid'])
  except ValueError:
   continue
  if (data_jid < int(jid)):
   ret.append(data)
 return ret

def _prior_running_states ( jid ) : ret = [ ] active = __salt__ [ 'saltutil.is_running' ] ( 'state.*' ) for data in active : try : data_jid = int ( data [ 'jid' ] ) except ValueError : continue if ( data_jid < int ( jid ) ) : ret . append ( data ) return ret
return a list of dicts of prior calls to state functions .