now apply in prod fix to emit fedmsg on block/unblock. ticket 3960

This commit is contained in:
Kevin Fenzi 2017-11-15 17:10:19 +00:00
parent 9a6a3a49be
commit 6b248fa847

View file

@ -33,7 +33,6 @@ def get_message_body(topic, *args, **kws):
if topic == 'package.list.change':
msg['tag'] = kws['tag']['name']
msg['package'] = kws['package']['name']
{% if env == 'staging' %}
msg['action'] = kws['action']
if 'owner' in kws:
msg['owner'] = kojihub.get_user(kws['owner'])['name']
@ -43,7 +42,6 @@ def get_message_body(topic, *args, **kws):
msg['extra_arches'] = kws.get('extra_arches', None)
msg['force'] = kws.get('force', None)
msg['update'] = kws.get('update', None)
{% endif %}
elif topic == 'task.state.change':
info = kws['info']