From 2a3e4c311e4f6f577a2d544f02304bed187cae2a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 30 2019 13:06:48 +0000 Subject: Try and drop volume change notifications. This is a backport of the patch made by Kevin Fenzi on the Fedora infrastructure ansible repo. Cf the commit 53103de0bd4510904d2532adb7a392fe087c80a2 in that repo Signed-off-by: Pierre-Yves Chibon --- diff --git a/fedmsg-koji-plugin.py b/fedmsg-koji-plugin.py index 03c102b..df33431 100644 --- a/fedmsg-koji-plugin.py +++ b/fedmsg-koji-plugin.py @@ -203,6 +203,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.