

def _get_client(self, next_hop, topic):
    'Turn the DB information for a cell into a messaging.RPCClient.'
    transport = self._get_transport(next_hop)
    target = messaging.Target(topic=topic, version='1.0')
    serializer = rpc.RequestContextSerializer(None)
    return messaging.RPCClient(transport, target, version_cap=self.version_cap, serializer=serializer)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/cells/rpc_driver.py InterCellRPCAPI._get_client/original