From 6987b8ac288c16c141b6872b711754d204223400 Mon Sep 17 00:00:00 2001 From: Li Ma Date: Thu, 16 Oct 2014 19:52:04 -0700 Subject: [PATCH] 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 --- oslo/messaging/_drivers/matchmaker_redis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo/messaging/_drivers/matchmaker_redis.py b/oslo/messaging/_drivers/matchmaker_redis.py index 66804746f..d007780ed 100644 --- a/oslo/messaging/_drivers/matchmaker_redis.py +++ b/oslo/messaging/_drivers/matchmaker_redis.py @@ -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: