Support namespace in RPCClient.prepare()

Noticed we were missing this when comstud added the opposite support to
RpcProxy in commit df7ea83.
This commit is contained in:
Mark McLoughlin 2013-05-31 06:33:37 +01:00
parent ff2c04834f
commit 952f82e197
1 changed files with 4 additions and 2 deletions

View File

@ -121,9 +121,11 @@ class RPCClient(object):
super(RPCClient, self).__init__()
def prepare(self, server=None, version=None,
def prepare(self, namespace=None, version=None, server=None,
timeout=None, check_for_lock=None, version_cap=None):
target = self.target(server=server, version=version)
target = self.target(namespace=namespace,
version=version,
server=server)
if timeout is None:
timeout = self.timeout