summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Leafe <ed@leafe.com>2011-06-30 21:15:56 +0000
committerTarmac <>2011-06-30 21:15:56 +0000
commit93ef6f6cf8e4c7902f6533758f800577e0770dcb (patch)
tree217d78bd49188ac967fb7b7c6fe1c0ab56a46ab1
parentf00e338a0080a2ccc9c56cd15124ff7e810da165 (diff)
parent9a29506efde938a465f50a67218400049ae3a1af (diff)
downloadnova-93ef6f6cf8e4c7902f6533758f800577e0770dcb.tar.gz
nova-93ef6f6cf8e4c7902f6533758f800577e0770dcb.tar.xz
nova-93ef6f6cf8e4c7902f6533758f800577e0770dcb.zip
Added 'self.auto_delete = True' to the two Publisher subclasses that lacked that setting.
-rw-r--r--nova/rpc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/rpc.py b/nova/rpc.py
index 9f0b507fd..29cb3044b 100644
--- a/nova/rpc.py
+++ b/nova/rpc.py
@@ -348,6 +348,7 @@ class TopicPublisher(Publisher):
self.routing_key = topic
self.exchange = FLAGS.control_exchange
self.durable = False
+ self.auto_delete = True
super(TopicPublisher, self).__init__(connection=connection)
@@ -360,6 +361,7 @@ class FanoutPublisher(Publisher):
self.exchange = '%s_fanout' % topic
self.queue = '%s_fanout' % topic
self.durable = False
+ self.auto_delete = True
LOG.info(_('Creating "%(exchange)s" fanout exchange'),
dict(exchange=self.exchange))
super(FanoutPublisher, self).__init__(connection=connection)