mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
Fixing up some issues with plugin loading
This commit is contained in:
parent
2a5fbd8570
commit
927072546b
4 changed files with 12 additions and 6 deletions
|
@ -60,6 +60,7 @@ class TaskQueueManager:
|
|||
self._options = options
|
||||
self._stats = AggregateStats()
|
||||
self.passwords = passwords
|
||||
self._stdout_callback = stdout_callback
|
||||
|
||||
# a special flag to help us exit cleanly
|
||||
self._terminated = False
|
||||
|
@ -73,9 +74,6 @@ class TaskQueueManager:
|
|||
|
||||
self._final_q = multiprocessing.Queue()
|
||||
|
||||
# load callback plugins
|
||||
self._callback_plugins = self._load_callbacks(stdout_callback)
|
||||
|
||||
# create the pool of worker threads, based on the number of forks specified
|
||||
try:
|
||||
fileno = sys.stdin.fileno()
|
||||
|
@ -206,6 +204,9 @@ class TaskQueueManager:
|
|||
are done with the current task).
|
||||
'''
|
||||
|
||||
# load callback plugins
|
||||
self._callback_plugins = self._load_callbacks(self._stdout_callback)
|
||||
|
||||
if play.vars_prompt:
|
||||
for var in play.vars_prompt:
|
||||
if 'name' not in var:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue