koji / fedmsg plugin: try and drop volume change notifications.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-08-02 20:31:12 +00:00 committed by Pierre-Yves Chibon
parent a0b999c659
commit ec3c9e8c20

View file

@ -183,6 +183,10 @@ def queue_message(cbtype, *args, **kws):
body.get('sigkey') == ''): body.get('sigkey') == ''):
return 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 # Last thing to do before publishing: scrub some problematic fields
# These fields are floating points which get json-encoded differently on # These fields are floating points which get json-encoded differently on
# rhel and fedora. # rhel and fedora.