From b0a4a9e188f948aefd995fafc062a9cfb92119ad Mon Sep 17 00:00:00 2001 From: Ludovic Claude Date: Thu, 23 Aug 2012 20:26:27 +0200 Subject: [PATCH] Issue #935: filter out __init__ module from the list of callbacks --- lib/ansible/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 7b1c17c4ad5..2011071d97a 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -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"):