From fc49bcd37708392690f95ddbb4f4def1a1049879 Mon Sep 17 00:00:00 2001 From: sinhan Date: Mon, 15 May 2017 15:48:11 +0000 Subject: [PATCH] RIFT 16501 get-package-endpoint now requires a valid package-type. Signed-off-by: sinhan --- rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/rpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}) -- 2.25.1