From ec3c9e8c20c2b0d5863c22c2830ad53ae135d18b Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 2 Aug 2019 20:31:12 +0000 Subject: [PATCH] koji / fedmsg plugin: try and drop volume change notifications. Signed-off-by: Kevin Fenzi --- roles/koji_hub/templates/fedmsg-koji-plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/koji_hub/templates/fedmsg-koji-plugin.py b/roles/koji_hub/templates/fedmsg-koji-plugin.py index 6d7b3aa2df..b67bab1356 100644 --- a/roles/koji_hub/templates/fedmsg-koji-plugin.py +++ b/roles/koji_hub/templates/fedmsg-koji-plugin.py @@ -183,6 +183,10 @@ def queue_message(cbtype, *args, **kws): body.get('sigkey') == ''): return + # Also, do not want to send a message on volume_id changes + if topic == 'build.state.change' and body.get('attribute') == 'volume_id': + return + # Last thing to do before publishing: scrub some problematic fields # These fields are floating points which get json-encoded differently on # rhel and fedora.