summaryrefslogtreecommitdiff
path: root/oslo/messaging/_drivers/matchmaker_ring.py
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2014-05-20 14:50:23 +0200
committerMark McLoughlin <markmc@redhat.com>2014-06-20 14:18:40 +0100
commit409108c74f79dba7167c6a5f0ff79fe0553fbe32 (patch)
tree1c0758af0ff738a400e61c3f1a2e014e9a89edb3 /oslo/messaging/_drivers/matchmaker_ring.py
parent99afe32345b21a178fc8e98bf0ab91b3383bfde5 (diff)
replace string format arguments with function parameters
There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: I4a7ce6916aefb2f2d445f0ebd977c824b1c51e24 Partial-Bug: #1321274
Notes
Notes (review): Verified+2: Jenkins Code-Review+2: Mark McLoughlin <markmc@redhat.com> Workflow+1: Mark McLoughlin <markmc@redhat.com> Code-Review+2: Mehdi Abaakouk <mehdi.abaakouk@enovance.com> Submitted-by: Jenkins Submitted-at: Fri, 20 Jun 2014 15:51:58 +0000 Reviewed-on: https://review.openstack.org/94355 Project: openstack/oslo.messaging Branch: refs/heads/master
Diffstat (limited to 'oslo/messaging/_drivers/matchmaker_ring.py')
-rw-r--r--oslo/messaging/_drivers/matchmaker_ring.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo/messaging/_drivers/matchmaker_ring.py b/oslo/messaging/_drivers/matchmaker_ring.py
index 3bcae02..e3c02b0 100644
--- a/oslo/messaging/_drivers/matchmaker_ring.py
+++ b/oslo/messaging/_drivers/matchmaker_ring.py
@@ -74,7 +74,7 @@ class RoundRobinRingExchange(RingExchange):
74 if not self._ring_has(key): 74 if not self._ring_has(key):
75 LOG.warn( 75 LOG.warn(
76 _("No key defining hosts for topic '%s', " 76 _("No key defining hosts for topic '%s', "
77 "see ringfile") % (key, ) 77 "see ringfile"), key
78 ) 78 )
79 return [] 79 return []
80 host = next(self.ring0[key]) 80 host = next(self.ring0[key])
@@ -92,7 +92,7 @@ class FanoutRingExchange(RingExchange):
92 if not self._ring_has(nkey): 92 if not self._ring_has(nkey):
93 LOG.warn( 93 LOG.warn(
94 _("No key defining hosts for topic '%s', " 94 _("No key defining hosts for topic '%s', "
95 "see ringfile") % (nkey, ) 95 "see ringfile"), nkey
96 ) 96 )
97 return [] 97 return []
98 return map(lambda x: (key + '.' + x, x), self.ring[nkey]) 98 return map(lambda x: (key + '.' + x, x), self.ring[nkey])