Small bug fix in producer.py 90/5490/1
authorHelena McGough <helena.mcgough@intel.com>
Mon, 2 Oct 2017 16:02:01 +0000 (17:02 +0100)
committerHelena McGough <helena.mcgough@intel.com>
Mon, 2 Oct 2017 16:02:59 +0000 (17:02 +0100)
Signed-off-by: Helena McGough <helena.mcgough@intel.com>
core/message_bus/producer.py

index f5abce2..1b0de7a 100644 (file)
@@ -65,7 +65,7 @@ class KafkaProducer(object):
 
     def publish(self, key, value, topic=None):
         try:
-            future = self.producer.send(key, value, topic)
+            future = self.producer.send(topic=topic, key=key, value=value)
             self.producer.flush()
         except Exception:
             logging.exception("Error publishing to {} topic." .format(topic))