1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

adhoc does not load plugins by default

reimplemented feature from 1.x which kept additional callbacks from
poluting adhoc unless specifically asked for through configuration.
This commit is contained in:
Brian Coca 2015-12-08 06:36:04 -08:00
parent 97626475db
commit 9ae1dede03

View file

@ -163,6 +163,9 @@ 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