mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
adhoc avoids callbacks by default as it did before
Previous emptying of whitelist only affected callbacks that were constructed for need whitelist. This now works for all callbacks.
This commit is contained in:
parent
0211da2fe9
commit
7936a4687e
2 changed files with 4 additions and 5 deletions
|
@ -163,9 +163,6 @@ class AdHocCLI(CLI):
|
|||
else:
|
||||
cb = 'minimal'
|
||||
|
||||
if not C.DEFAULT_LOAD_CALLBACK_PLUGINS:
|
||||
C.DEFAULT_CALLBACK_WHITELIST = []
|
||||
|
||||
if self.options.tree:
|
||||
C.DEFAULT_CALLBACK_WHITELIST.append('tree')
|
||||
C.TREE_DIR = self.options.tree
|
||||
|
@ -180,6 +177,7 @@ class AdHocCLI(CLI):
|
|||
options=self.options,
|
||||
passwords=passwords,
|
||||
stdout_callback=cb,
|
||||
run_additional_callbacks=C.DEFAULT_LOAD_CALLBACK_PLUGINS,
|
||||
)
|
||||
result = self._tqm.run(play)
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue