#NEWLINE# def _prior_running_states( jid ) : #NEWLINE# #INDENT# '\n    Return a list of dicts of prior calls to state functions.  This function is\n    used to queue state calls so only one is run at a time.\n    ' #NEWLINE# ret = [ ] #NEWLINE# active = __salt__ [ 'saltutil.is_running' ] ( 'state.*' ) #NEWLINE# for data in active : #NEWLINE# #INDENT# if ( int ( data [ 'jid' ] ) < int ( jid ) ) : #NEWLINE# #INDENT# ret . append ( data ) #NEWLINE# #UNINDENT# #UNINDENT# return active