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

Issue #935: filter out __init__ module from the list of callbacks

This commit is contained in:
Ludovic Claude 2012-08-23 20:26:27 +02:00
parent b69d11a8e3
commit b0a4a9e188

View file

@ -25,7 +25,7 @@ from ansible.color import stringc
dirname = os.path.dirname(__file__)
callbacks = utils.import_plugins(os.path.join(dirname, 'callback_plugins'))
callbacks = [ c.CallbackModule() for c in callbacks.values() ]
callbacks = [ c.CallbackModule() for c in callbacks.values() if c.__name__ != '__init__' ]
cowsay = None
if os.path.exists("/usr/bin/cowsay"):