[Fix gate] Update oslo.messaging constructors following recent change

This patch fixes the murano gate to align with a recent change [0]
made to oslo.messaging in which the kwarg topic was changed to
topics.

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

Change-Id: I9c70448914063976264dc40b10f238105bdfccc1
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
This commit is contained in:
zhurong 2017-03-07 20:41:48 +08:00 committed by Felipe Monteiro
parent 45fcfe9203
commit 4cbf1a27fe
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ class InstanceReportNotifier(object):
self._notifier = messaging.Notifier(
InstanceReportNotifier.transport,
publisher_id=uuidutils.generate_uuid(),
topic='murano')
topics=['murano'])
self._environment_id = environment.id
def _track_instance(self, instance, instance_type,

View File

@ -36,7 +36,7 @@ class StatusReporter(object):
self._notifier = messaging.Notifier(
StatusReporter.transport,
publisher_id=uuidutils.generate_uuid(),
topic='murano')
topics=['murano'])
if isinstance(environment, six.string_types):
self._environment_id = environment
else: