mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Don't try to generate retry files if the tqm hasn't been initialized
Fixes #14144
This commit is contained in:
parent
7e3963420d
commit
a61e51efb7
1 changed files with 14 additions and 14 deletions
|
@ -172,6 +172,8 @@ class PlaybookExecutor:
|
|||
if entry:
|
||||
entrylist.append(entry) # per playbook
|
||||
|
||||
# send the stats callback for this playbook
|
||||
if self._tqm is not None:
|
||||
if C.RETRY_FILES_ENABLED:
|
||||
retries = list(set(self._tqm._failed_hosts.keys() + self._tqm._unreachable_hosts.keys()))
|
||||
retries.sort()
|
||||
|
@ -186,8 +188,6 @@ class PlaybookExecutor:
|
|||
if self._generate_retry_inventory(filename, retries):
|
||||
display.display("\tto retry, use: --limit @%s\n" % filename)
|
||||
|
||||
# send the stats callback for this playbook
|
||||
if self._tqm is not None:
|
||||
self._tqm.send_callback('v2_playbook_on_stats', self._tqm._stats)
|
||||
|
||||
# if the last result wasn't zero, break out of the playbook file name loop
|
||||
|
|
Loading…
Reference in a new issue