Skip to content
Snippets Groups Projects
Commit 518c3b1c authored by Cody Messick's avatar Cody Messick Committed by Leo P. Singer
Browse files

Fix thinkos in the kafka bootstep

parent 8ec671d2
No related branches found
No related tags found
1 merge request!882Fix thinkos in the kafka bootstep
......@@ -30,10 +30,12 @@ class KafkaBootStep(bootsteps.ConsumerStep):
'Start the worker with "--queues=kafka --pool=solo".')
def start(self, consumer):
log.info(f'Starting {self.name}, topics: ' + ' '.join[self.kafka_urls])
log.info(f'Starting {self.name}, topics: '
' '.join(consumer.app.conf['kafka_urls']))
def stop(self, consumer):
log.info('Closing connection to topics: ' + ' '.join(self.kafka_urls))
log.info('Closing connection to topics: '
' '.join(consumer.app.conf['kafka_urls']))
class Producer(KafkaBootStep):
......@@ -44,7 +46,8 @@ class Producer(KafkaBootStep):
def start(self, consumer):
super().start(consumer)
consumer.app.conf['kafka_streams'] = {
k: stream.open(v, 'w') for k, v in consumer.app.conf['kafka_urls']
k: stream.open(v, 'w') for k, v in
consumer.app.conf['kafka_urls'].items()
}
def stop(self, consumer):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment