Browse Source

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
changes/14/129114/2
Li Ma 7 years ago
parent
commit
6987b8ac28
  1. 2
      oslo/messaging/_drivers/matchmaker_redis.py

2
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:

Loading…
Cancel
Save