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

pull/936/head
Ludovic Claude 12 years ago
parent b69d11a8e3
commit b0a4a9e188

@ -25,7 +25,7 @@ from ansible.color import stringc
dirname = os.path.dirname(__file__) dirname = os.path.dirname(__file__)
callbacks = utils.import_plugins(os.path.join(dirname, 'callback_plugins')) 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 cowsay = None
if os.path.exists("/usr/bin/cowsay"): if os.path.exists("/usr/bin/cowsay"):

Loading…
Cancel
Save