~ubuntu-branches/ubuntu/trusty/heat/trusty-security

« back to all changes in this revision

Viewing changes to heat/openstack/common/rpc/matchmaker_ring.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-09-08 21:51:19 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20130908215119-7tcek6gn73275x5k
Tags: upstream-2013.2~b3
ImportĀ upstreamĀ versionĀ 2013.2~b3

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
from oslo.config import cfg
25
25
 
26
 
from heat.openstack.common.gettextutils import _
 
26
from heat.openstack.common.gettextutils import _  # noqa
27
27
from heat.openstack.common import log as logging
28
28
from heat.openstack.common.rpc import matchmaker as mm
29
29
 
63
63
            self.ring0[k] = itertools.cycle(self.ring[k])
64
64
 
65
65
    def _ring_has(self, key):
66
 
        if key in self.ring0:
67
 
            return True
68
 
        return False
 
66
        return key in self.ring0
69
67
 
70
68
 
71
69
class RoundRobinRingExchange(RingExchange):