mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
parent
2f33c1a1a1
commit
5553b20828
206 changed files with 1853 additions and 1870 deletions
|
@ -78,9 +78,9 @@ class StrategyModule(LinearStrategyModule):
|
|||
# rollback host state
|
||||
self.curr_tqm.clear_failed_hosts()
|
||||
iterator._host_states[self.curr_host.name] = prev_host_state
|
||||
if reduce(lambda total, res : res.is_failed() or total, results, False):
|
||||
if reduce(lambda total, res: res.is_failed() or total, results, False):
|
||||
self._tqm._stats.failures[self.curr_host.name] -= 1
|
||||
elif reduce(lambda total, res : res.is_unreachable() or total, results, False):
|
||||
elif reduce(lambda total, res: res.is_unreachable() or total, results, False):
|
||||
self._tqm._stats.dark[self.curr_host.name] -= 1
|
||||
|
||||
# redo
|
||||
|
@ -94,7 +94,7 @@ class StrategyModule(LinearStrategyModule):
|
|||
return results
|
||||
|
||||
def _need_debug(self, results):
|
||||
return reduce(lambda total, res : res.is_failed() or res.is_unreachable() or total, results, False)
|
||||
return reduce(lambda total, res: res.is_failed() or res.is_unreachable() or total, results, False)
|
||||
|
||||
|
||||
class Debugger(cmd.Cmd):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue