Set play context on stdout callback plugin (#35910)
The loop on self._callback_plugins does not include the stdout callback, so the stdout_callback never has set_play_context called.
This commit is contained in:
parent
ad7798c26a
commit
824c72da5f
1 changed files with 4 additions and 0 deletions
|
@ -241,6 +241,10 @@ class TaskQueueManager:
|
||||||
)
|
)
|
||||||
|
|
||||||
play_context = PlayContext(new_play, self._options, self.passwords, self._connection_lockfile.fileno())
|
play_context = PlayContext(new_play, self._options, self.passwords, self._connection_lockfile.fileno())
|
||||||
|
if (self._stdout_callback and
|
||||||
|
hasattr(self._stdout_callback, 'set_play_context')):
|
||||||
|
self._stdout_callback.set_play_context(play_context)
|
||||||
|
|
||||||
for callback_plugin in self._callback_plugins:
|
for callback_plugin in self._callback_plugins:
|
||||||
if hasattr(callback_plugin, 'set_play_context'):
|
if hasattr(callback_plugin, 'set_play_context'):
|
||||||
callback_plugin.set_play_context(play_context)
|
callback_plugin.set_play_context(play_context)
|
||||||
|
|
Loading…
Reference in a new issue