From 766656d65f37807d1c0880e31e9f7deab11f5a60 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 3 Mar 2017 09:55:31 -0500 Subject: [PATCH] Ignore all messages from the secondary koji instances. --- module_build_service/messaging.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module_build_service/messaging.py b/module_build_service/messaging.py index 430c7324..28d310ee 100644 --- a/module_build_service/messaging.py +++ b/module_build_service/messaging.py @@ -177,6 +177,13 @@ class BaseMessage(object): msg_obj = None + # Ignore all messages from the secondary koji instances. + if category == 'buildsys': + instance = msg_inner_msg.get('instance', 'primary') + if instance != 'primary': + log.debug("Ignoring message from %r koji hub." % instance) + return + if category == 'buildsys' and object == 'build' and \ subobject == 'state' and event == 'change': build_id = msg_inner_msg.get('build_id')