summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEwan Mellor <ewan.mellor@citrix.com>2010-07-25 17:28:39 +0100
committerEwan Mellor <ewan.mellor@citrix.com>2010-07-25 17:28:39 +0100
commitfdea01a233e72551e750a5beaca0739ec8173ac3 (patch)
tree5975ae2349d3a24a6db7ec21c47dc65216e63b6c
parent7050e7e49e8aad3ff3f5d0060c96ff97d9c2852f (diff)
Set durable=False on TopicPublisher, so that it matches the flag on
TopicConsumer. This ensures that either redeclaration of the control_exchange will use the same flag, and avoid AMQPChannelException.
-rw-r--r--nova/rpc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/rpc.py b/nova/rpc.py
index ef463e84b..5a2f4b3ad 100644
--- a/nova/rpc.py
+++ b/nova/rpc.py
@@ -151,6 +151,7 @@ class TopicPublisher(Publisher):
def __init__(self, connection=None, topic="broadcast"):
self.routing_key = topic
self.exchange = FLAGS.control_exchange
+ self.durable = False
super(TopicPublisher, self).__init__(connection=connection)