summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhar Hrachyshka <ihrachys@redhat.com>2015-01-15 14:13:11 +0100
committerIhar Hrachyshka <ihrachys@redhat.com>2015-01-15 14:14:10 +0100
commitfbf73003dbbe388aca294b8925b1b29d84834cd9 (patch)
treeed80cb4ced3904e5b20c7e59184cd432a556c67f
parent4cfb0e657b88395bc0c8c5e28f4a03dba21ee1a9 (diff)
downloadoslo-incubator-fbf73003dbbe388aca294b8925b1b29d84834cd9.tar.gz
Fix incorrect attribute name in matchmaker_redis
Pass the correct base class attribute name for host topic to self.register and fix the AttributeError. Change-Id: Idfe94dd37cdba9f498f79cf87d4fff81e7c4249b Closes-Bug: #1246308
-rw-r--r--openstack/common/rpc/matchmaker_redis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/rpc/matchmaker_redis.py b/openstack/common/rpc/matchmaker_redis.py
index bb24ea4b..0b3d7dab 100644
--- a/openstack/common/rpc/matchmaker_redis.py
+++ b/openstack/common/rpc/matchmaker_redis.py
@@ -108,7 +108,7 @@ class MatchMakerRedis(mm_common.HeartbeatMatchMakerBase):
# If we could not update the expiration, the key
# might have been pruned. Re-register, creating a new
# key in Redis.
- self.register(self.topic_host[host], host)
+ self.register(self.host_topic[host], host)
def is_alive(self, topic, host):
ttl = self.redis.ttl(host)