Skip to content

Commit

Permalink
adhoc does not load plugins by default
Browse files Browse the repository at this point in the history
reimplemented feature from 1.x which kept additional callbacks from
poluting adhoc unless specifically asked for through configuration.
  • Loading branch information
bcoca committed Dec 8, 2015
1 parent 9762647 commit 9ae1ded
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ansible/cli/adhoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ def run(self):
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
Expand Down

0 comments on commit 9ae1ded

Please sign in to comment.