Skip to content

Commit

Permalink
plug state events into state runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
thatch45 committed Oct 1, 2013
1 parent f93deaa commit 77fff17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,7 @@ def call_chunk(self, low, running, chunks):
'comment': comment,
'__run_num__': self.__run_num}
self.__run_num += 1
self.event(running[tag])
return running
for chunk in reqs:
# Check to see if the chunk has been run, only run it if
Expand All @@ -1473,6 +1474,7 @@ def call_chunk(self, low, running, chunks):
'comment': 'Recursive requisite found',
'__run_num__': self.__run_num}
self.__run_num += 1
self.event(running[tag])
return running
running = self.call_chunk(chunk, running, chunks)
if self.check_failhard(chunk, running):
Expand Down Expand Up @@ -1519,6 +1521,7 @@ def call_chunk(self, low, running, chunks):
self.pre[tag] = self.call(low)
else:
running[tag] = self.call(low)
self.event(running[tag])
return running

def call_high(self, high):
Expand Down

0 comments on commit 77fff17

Please sign in to comment.