Set koji fedmsg plugin to use the new postCommit hook.

https://pagure.io/fedora-infrastructure/issue/5546
This commit is contained in:
Ralph Bean 2016-12-13 15:16:25 +00:00
parent fa1fbf2634
commit 3ec2515f09

View file

@ -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 %}