summaryrefslogtreecommitdiffstats
path: root/callback_plugins
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-06-30 14:44:43 +0000
committerRalph Bean <rbean@redhat.com>2014-06-30 14:44:52 +0000
commit3d7eb0c72bd249f1250380f0a004fbef6bcfe7a2 (patch)
treeb7b6be0225acf83e41cbc436be462b25d082c047 /callback_plugins
parent516dcf6dc8e113e9196a9fa60ceb318a1cb51d38 (diff)
downloadansible-3d7eb0c72bd249f1250380f0a004fbef6bcfe7a2.tar.gz
ansible-3d7eb0c72bd249f1250380f0a004fbef6bcfe7a2.tar.xz
ansible-3d7eb0c72bd249f1250380f0a004fbef6bcfe7a2.zip
Catch and ignore fedmsg warnings about multiple initializations.
Diffstat (limited to 'callback_plugins')
-rw-r--r--callback_plugins/fedmsg_callback.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/callback_plugins/fedmsg_callback.py b/callback_plugins/fedmsg_callback.py
index 4345064b0..5dd550908 100644
--- a/callback_plugins/fedmsg_callback.py
+++ b/callback_plugins/fedmsg_callback.py
@@ -43,7 +43,14 @@ class CallbackModule(object):
cert_prefix='shell',
active=True,
))
- fedmsg.init(**config)
+ # It seems like recursive playbooks call this over and over again and
+ # fedmsg doesn't like to be initialized more than once. So, here, just
+ # catch that and ignore it.
+ try:
+ fedmsg.init(**config)
+ except ValueError:
+ pass
+
def playbook_on_play_start(self, pattern):
# This gets called once for each play.. but we just issue a message once