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-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=7128529e6497f66bfc9f00ca18eba164e5ece8ac;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})