From: sinhan Date: Mon, 15 May 2017 15:48:11 +0000 (+0000) Subject: RIFT 16501 get-package-endpoint now requires a valid package-type. X-Git-Tag: v2.0.1~8^2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=fc49bcd37708392690f95ddbb4f4def1a1049879;p=osm%2FSO.git RIFT 16501 get-package-endpoint now requires a valid package-type. Signed-off-by: sinhan --- 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})