X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwlaunchpad%2Fplugins%2Frwpkgmgr%2Frift%2Ftasklets%2Frwpkgmgr%2Frpc.py;h=5c3303f4293789fc73a2afbd39bcdf56907d2be0;hb=e3aa6347e7757f8a58da6b8707341d0038d45594;hp=56dd404957c0ebdbe66aa4ce8bd5b2ff5743c94a;hpb=a259f6533cd5ccbb5d1ebb8ce684cd70ae056ea5;p=osm%2FSO.git diff --git a/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/rpc.py b/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/rpc.py index 56dd4049..5c3303f4 100644 --- a/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/rpc.py +++ b/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/rpc.py @@ -56,8 +56,9 @@ class EndpointDiscoveryRpcHandler(mano_dts.AbstractRpcHandler): def callback(self, ks_path, msg): """Forwards the request to proxy. """ + url = yield from self.proxy.endpoint( - msg.package_type, + msg.package_type if msg.has_field('package_type') else "", msg.package_id) rpc_op = RPC_PKG_ENDPOINT.from_dict({"endpoint": url})