Skip to content

Instantly share code, notes, and snippets.

@relrod
Created August 2, 2019 20:08
Show Gist options
  • Save relrod/3f8cb226c420bd880b5913fbf1895875 to your computer and use it in GitHub Desktop.
Save relrod/3f8cb226c420bd880b5913fbf1895875 to your computer and use it in GitHub Desktop.
diff --git a/roles/koji_hub/templates/fedmsg-koji-plugin.py b/roles/koji_hub/templates/fedmsg-koji-plugin.py
index 6d7b3aa..3ff315d 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
+ # Don't publish 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment