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
This commit is contained in:
Li Ma 2014-10-16 19:52:04 -07:00
parent a1489a252d
commit 6987b8ac28
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,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):
if self.redis.ttl(host) == -1: