Switch to "topics" keyword for messaging driver

The keyword "topic" has been dropped [1] in oslo.messaging. Let's
switch to "topics".

[1] https://review.openstack.org/#/c/433950/

Change-Id: I70012bba09940a5f9a379706b4fc6b901ac9fa02
This commit is contained in:
Hongbin Lu 2017-03-17 19:01:19 -05:00
parent d0f5aed405
commit 7f099bc237
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class Messaging(base.Driver):
self.client = messaging.Notifier(
transport, publisher_id=self.host, driver="messaging",
topic="profiler", retry=0)
topics=["profiler"], retry=0)
@classmethod
def get_name(cls):

View File

@ -36,7 +36,7 @@ class MessagingTestCase(test.TestCase):
messaging.Notifier.assert_called_once_with(
transport, publisher_id=host, driver="messaging",
topic="profiler", retry=0)
topics=["profiler"], retry=0)
info = {
"a": 10,