diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-04-14 22:13:57 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-04-14 22:13:57 +0000 |
| commit | f57658fe623af3379388f50a988ddf1320622729 (patch) | |
| tree | cccca7755cd999931173fa8f8f80b3cb9a1a779c /openstack/common/rpc/proxy.py | |
| parent | 73061f2d3e5fdd811a0f02aa969fa62b3454e644 (diff) | |
| parent | 6901a3ba3e09ae091480b650ec23c2f2d9543152 (diff) | |
| download | oslo-f57658fe623af3379388f50a988ddf1320622729.tar.gz oslo-f57658fe623af3379388f50a988ddf1320622729.tar.xz oslo-f57658fe623af3379388f50a988ddf1320622729.zip | |
Merge "Add rpc method namespace support."
Diffstat (limited to 'openstack/common/rpc/proxy.py')
| -rw-r--r-- | openstack/common/rpc/proxy.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openstack/common/rpc/proxy.py b/openstack/common/rpc/proxy.py index 822248d..284f375 100644 --- a/openstack/common/rpc/proxy.py +++ b/openstack/common/rpc/proxy.py @@ -59,8 +59,12 @@ class RpcProxy(object): return topic if topic else self.topic @staticmethod + def make_namespaced_msg(method, namespace, **kwargs): + return {'method': method, 'namespace': namespace, 'args': kwargs} + + @staticmethod def make_msg(method, **kwargs): - return {'method': method, 'args': kwargs} + return RpcProxy.make_namespaced_msg(method, None, **kwargs) def call(self, context, msg, topic=None, version=None, timeout=None): """rpc.call() a remote method. |
