diff options
author | Ihar Hrachyshka <ihrachys@redhat.com> | 2015-01-15 14:13:11 +0100 |
---|---|---|
committer | Ihar Hrachyshka <ihrachys@redhat.com> | 2015-01-15 14:14:10 +0100 |
commit | fbf73003dbbe388aca294b8925b1b29d84834cd9 (patch) | |
tree | ed80cb4ced3904e5b20c7e59184cd432a556c67f | |
parent | 4cfb0e657b88395bc0c8c5e28f4a03dba21ee1a9 (diff) | |
download | oslo-incubator-fbf73003dbbe388aca294b8925b1b29d84834cd9.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
-rw-r--r-- | openstack/common/rpc/matchmaker_redis.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/rpc/matchmaker_redis.py b/openstack/common/rpc/matchmaker_redis.py index bb24ea4b..0b3d7dab 100644 --- a/openstack/common/rpc/matchmaker_redis.py +++ b/openstack/common/rpc/matchmaker_redis.py @@ -108,7 +108,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) |