From 8c6162d9e65ed1f1d5df5330fedde71577e6ab49 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Sun, 18 Dec 2016 03:36:08 +0000 Subject: [PATCH] Also update the filter rule Signed-off-by: Patrick Uiterwijk --- roles/koji_hub/templates/fedmsg-koji-plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/koji_hub/templates/fedmsg-koji-plugin.py b/roles/koji_hub/templates/fedmsg-koji-plugin.py index 38d2ed55be..b0ce28c4b3 100644 --- a/roles/koji_hub/templates/fedmsg-koji-plugin.py +++ b/roles/koji_hub/templates/fedmsg-koji-plugin.py @@ -169,7 +169,8 @@ def queue_message(cbtype, *args, **kws): # Don't publish these uninformative rpm.sign messages if there's no actual # sigkey present. Koji apparently adds a dummy sig value when rpms are # first imported and there's no need to spam the world about that. - if topic == 'rpm.sign' and body.get('info', {}).get('sigkey') == '': + if topic == 'rpm.sign' and (body.get('info', {}).get('sigkey') == '' or + body.get('sigkey') == ''): return # Last thing to do before publishing: scrub some problematic fields