mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Ignore states that do not have a numeric jid, i.e. 'req' (#36185)
This commit is contained in:
parent
d4628f3c6b
commit
6a5f7cb346
1 changed files with 5 additions and 1 deletions
|
@ -143,7 +143,11 @@ def _prior_running_states(jid):
|
|||
ret = []
|
||||
active = __salt__['saltutil.is_running']('state.*')
|
||||
for data in active:
|
||||
if int(data['jid']) < int(jid):
|
||||
try:
|
||||
data_jid = int(data['jid'])
|
||||
except ValueError:
|
||||
continue
|
||||
if data_jid < int(jid):
|
||||
ret.append(data)
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue