From 3ec2515f091240fd81d24dc87cd1883a3dc80768 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 13 Dec 2016 15:16:25 +0000 Subject: [PATCH] Set koji fedmsg plugin to use the new postCommit hook. https://pagure.io/fedora-infrastructure/issue/5546 --- roles/koji_hub/templates/fedmsg-koji-plugin.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/roles/koji_hub/templates/fedmsg-koji-plugin.py b/roles/koji_hub/templates/fedmsg-koji-plugin.py index 2ba4ffc2fc..905275c28b 100644 --- a/roles/koji_hub/templates/fedmsg-koji-plugin.py +++ b/roles/koji_hub/templates/fedmsg-koji-plugin.py @@ -179,10 +179,6 @@ def queue_message(cbtype, *args, **kws): body = scrub(body) -{% if env != 'staging' %} - # Send the messages immediately. - fedmsg.publish(topic=topic, msg=body, modname='buildsys') -{% else %} # Queue the message for later. # It will only get sent after postCommit is called. messages = getattr(context, 'fedmsg_plugin_messages', []) @@ -197,4 +193,3 @@ def send_messages(cbtype, *args, **kws): messages = getattr(context, 'fedmsg_plugin_messages', []) for message in messages: fedmsg.publish(**message) -{% endif %}