Replace hardcoded "nova" with FLAGS.control_exchange.
This commit is contained in:
@@ -242,7 +242,7 @@ def send_message(topic, message, wait=True):
|
||||
consumer.register_callback(generic_response)
|
||||
|
||||
publisher = messaging.Publisher(connection=Connection.instance(),
|
||||
exchange="nova",
|
||||
exchange=FLAGS.control_exchange,
|
||||
exchange_type="topic",
|
||||
routing_key=topic)
|
||||
publisher.send(message)
|
||||
|
||||
Reference in New Issue
Block a user