diff options
author | Ed Leafe <ed@leafe.com> | 2011-06-30 20:50:31 +0000 |
---|---|---|
committer | Ed Leafe <ed@leafe.com> | 2011-06-30 20:50:31 +0000 |
commit | ae21a37373d89dec36d97fd6bb1e22a1ad085895 (patch) | |
tree | 63fcfd374c5301557049995e083b2c8b090a9194 /nova | |
parent | c7ee39c3d00fdc799850b308fefd08f482edb5e5 (diff) | |
download | nova-ae21a37373d89dec36d97fd6bb1e22a1ad085895.tar.gz |
Added self.auto_delete = True to the Publisher subclasses that did not have that set.
Diffstat (limited to 'nova')
-rw-r--r-- | nova/rpc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/rpc.py b/nova/rpc.py index 9f0b507fd6..29cb3044b4 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) |