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:
parent
a1489a252d
commit
6987b8ac28
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue