mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
made returns from next task consistent to avoid typeerrors, also linear now checks for none
fixes #11965
This commit is contained in:
@@ -130,7 +130,7 @@ class PlayIterator:
|
|||||||
|
|
||||||
task = None
|
task = None
|
||||||
if s.run_state == self.ITERATING_COMPLETE:
|
if s.run_state == self.ITERATING_COMPLETE:
|
||||||
return None
|
return (None, None)
|
||||||
elif s.run_state == self.ITERATING_SETUP:
|
elif s.run_state == self.ITERATING_SETUP:
|
||||||
s.run_state = self.ITERATING_TASKS
|
s.run_state = self.ITERATING_TASKS
|
||||||
s.pending_setup = True
|
s.pending_setup = True
|
||||||
|
|||||||
@@ -58,6 +58,9 @@ class StrategyModule(StrategyBase):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
(s, t) = v
|
(s, t) = v
|
||||||
|
if t is None:
|
||||||
|
continue
|
||||||
|
|
||||||
if s.cur_block < lowest_cur_block and s.run_state != PlayIterator.ITERATING_COMPLETE:
|
if s.cur_block < lowest_cur_block and s.run_state != PlayIterator.ITERATING_COMPLETE:
|
||||||
lowest_cur_block = s.cur_block
|
lowest_cur_block = s.cur_block
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user