Initialize RpcProxy objects correctly

RpcProxy class is used as base in classes with multiple inheritance
(ex. MeteringAgent). To initialize objects of such classes correctly
every constructor should call its base constructor via super().__init__()

Closes bug 1332788

Change-Id: I00ef804b6ee6c73dec3e177202bb85311e3e2b10
This commit is contained in:
Ilya Shakhat 2014-07-18 14:09:18 +04:00
parent 68713c94ee
commit 82e57eb9f2
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ class RpcProxy(object):
RPC_API_NAMESPACE = None
def __init__(self, topic, default_version, version_cap=None):
super(RpcProxy, self).__init__()
self.topic = topic
target = messaging.Target(topic=topic, version=default_version)
self._client = get_client(target, version_cap=version_cap)