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 18:32:38 +0000
commita706a5e6a38022804081c21fa8c9d8c76a8b8581 (patch)
tree6d3aafe2d3b7c8340706baff41ce9f3342cf48a5
parent16f75db027d84292417202511a755c60eb51aa93 (diff)
downloadoslo-incubator-a706a5e6a38022804081c21fa8c9d8c76a8b8581.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 (cherry picked from commit fbf73003dbbe388aca294b8925b1b29d84834cd9)
-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 2ba0f8db..215ab9e3 100644
--- a/openstack/common/rpc/matchmaker_redis.py
+++ b/openstack/common/rpc/matchmaker_redis.py
@@ -109,7 +109,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)