Fix callback set_options issue with collections (#66128)

Fixes: #66127
pull/66218/head
Rémi REY 6 years ago committed by Sloane Hertel
parent 80dff8743a
commit 7888eafb82

@ -0,0 +1,3 @@
---
bugfixes:
- "Fix issue with callbacks ``set_options`` method that was not called with collections"

@ -161,6 +161,7 @@ class TaskQueueManager:
for callback_plugin_name in (c for c in C.DEFAULT_CALLBACK_WHITELIST if AnsibleCollectionRef.is_valid_fqcr(c)):
# TODO: need to extend/duplicate the stdout callback check here (and possible move this ahead of the old way
callback_obj = callback_loader.get(callback_plugin_name)
callback_obj.set_options()
self._callback_plugins.append(callback_obj)
self._callbacks_loaded = True

Loading…
Cancel
Save