Skip to content

Commit

Permalink
Fix callback set_options issue with collections (ansible#66128)
Browse files Browse the repository at this point in the history
Fixes: ansible#66127
(cherry picked from commit 7888eaf)
  • Loading branch information
rrey authored and mattclay committed Jan 13, 2020
1 parent 5dc1d93 commit d97a9a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/66128-fix-callback-set-options.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- "Fix issue with callbacks ``set_options`` method that was not called with collections"
1 change: 1 addition & 0 deletions lib/ansible/executor/task_queue_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def load_callbacks(self):
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
Expand Down

0 comments on commit d97a9a7

Please sign in to comment.