mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #42985 from DSRCorporation/bugs/15171_recursion_limit
Properly handle `prereq` having lost requisites.
This commit is contained in:
commit
e2bf2f448e
1 changed files with 10 additions and 6 deletions
|
@ -2071,13 +2071,17 @@ class State(object):
|
|||
req_val = lreq[req_key]
|
||||
comment += \
|
||||
'{0}{1}: {2}\n'.format(' ' * 23, req_key, req_val)
|
||||
running[tag] = {'changes': {},
|
||||
'result': False,
|
||||
'comment': comment,
|
||||
'__run_num__': self.__run_num,
|
||||
'__sls__': low['__sls__']}
|
||||
if low.get('__prereq__'):
|
||||
run_dict = self.pre
|
||||
else:
|
||||
run_dict = running
|
||||
run_dict[tag] = {'changes': {},
|
||||
'result': False,
|
||||
'comment': comment,
|
||||
'__run_num__': self.__run_num,
|
||||
'__sls__': low['__sls__']}
|
||||
self.__run_num += 1
|
||||
self.event(running[tag], len(chunks), fire_event=low.get('fire_event'))
|
||||
self.event(run_dict[tag], len(chunks), fire_event=low.get('fire_event'))
|
||||
return running
|
||||
for chunk in reqs:
|
||||
# Check to see if the chunk has been run, only run it if
|
||||
|
|
Loading…
Add table
Reference in a new issue